Netbrain has submitted this change and it was merged. Change subject: Set parsing of extension input at an earlier time. ......................................................................
Set parsing of extension input at an earlier time. Change-Id: I6067debd3750faff86580a6c0afb0f5b37b993f4 --- M SideBarMenu.hooks.php 1 file changed, 2 insertions(+), 2 deletions(-) Approvals: Netbrain: Verified; Looks good to me, approved diff --git a/SideBarMenu.hooks.php b/SideBarMenu.hooks.php index 3516b8e..a5441c6 100644 --- a/SideBarMenu.hooks.php +++ b/SideBarMenu.hooks.php @@ -9,6 +9,7 @@ public static function renderFromTag($input, array $args, Parser $parser, PPFrame $frame) { $parser->getOutput()->addModules('ext.sidebarmenu.core'); + $input = $parser->recursiveTagParse($input,$frame); //default settings $config = self::getTagConfig($args); @@ -16,8 +17,7 @@ $output = '<div class="sidebar-menu-container'.(is_null($config[SBM_CLASS])? '' : ' '.$config[SBM_CLASS]).'"'.(is_null($config[SBM_STYLE])? '' : ' style="'.$config[SBM_STYLE].'"').'>'; try { $menuParser = new MenuParser($config); - $menuHTML = $menuParser->getMenuTree($input)->toHTML(); - $output .= $parser->recursiveTagParse($menuHTML, $frame); + $output .= $menuParser->getMenuTree($input)->toHTML(); } catch (Exception $x) { wfDebug("An error occured during parsing of: '$input' caught exception: $x"); return wfMessage('sidebarmenu-parser-input-error', $x->getMessage())->text(); -- To view, visit https://gerrit.wikimedia.org/r/78802 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I6067debd3750faff86580a6c0afb0f5b37b993f4 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/SideBarMenu Gerrit-Branch: master Gerrit-Owner: Netbrain <k...@heldig.org> Gerrit-Reviewer: Netbrain <k...@heldig.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits