Skip to content

Commit

Permalink
[BUGFIX] Shortcode service
Browse files Browse the repository at this point in the history
  • Loading branch information
Midhun Devasia committed Dec 3, 2016
1 parent 1d6fdae commit 9d7ffcd
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions Classes/Service/ShortCodeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,10 @@ public static function hasShortCode($hookName) {

/**
* Get all registered shortcodes
* @param string $hookName Hookname
* @return array|NULL
* @return array
*/
public static function getAll($hookName) {
if (self::hasShortCode($hookName)) {
return $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['Blogmaster/ShortCode'][$hookName];
} else {
return NULL;
}
public static function getAll() {
return $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['Blogmaster/ShortCode'];
}

/**
Expand All @@ -74,7 +69,8 @@ public static function applyShortCode($content, $ref) {
return $content;
}

$hooks = self::getAll('Blogmaster/ShortCode');
$hooks = self::getAll(
);
if (empty($hooks)) {
return $content;
}
Expand Down

0 comments on commit 9d7ffcd

Please sign in to comment.