Skip to content

Commit

Permalink
Merge pull request #84 from restruct/master
Browse files Browse the repository at this point in the history
vendormodule & Shortcadable class name reference
  • Loading branch information
micschk authored Jan 18, 2021
2 parents 055c340 + f322729 commit 7ae7ab0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions _config.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}

// enable shortcodable buttons and add to HtmlEditorConfig
$htmlEditorNames = Config::inst()->get('Shortcodable', 'htmleditor_names');
$htmlEditorNames = Config::inst()->get(Shortcodable::class, 'htmleditor_names');
if (is_array($htmlEditorNames)) {
foreach ($htmlEditorNames as $htmlEditorName) {
// HtmlEditorConfig::get($htmlEditorName)->enablePlugins(array(
Expand All @@ -23,5 +23,5 @@
}

// register classes added via yml config
$classes = Config::inst()->get('Shortcodable', 'shortcodable_classes');
$classes = Config::inst()->get(Shortcodable::class, 'shortcodable_classes');
Shortcodable::register_classes($classes);
2 changes: 1 addition & 1 deletion src/Shortcodable.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static function register_class($class)

public static function get_shortcodable_classes()
{
return Config::inst()->get('Shortcodable', 'shortcodable_classes');
return Config::inst()->get(Shortcodable::class, 'shortcodable_classes');
}

public static function get_shortcodable_classes_fordropdown()
Expand Down

0 comments on commit 7ae7ab0

Please sign in to comment.