Skip to content
Permalink
Browse files

Experimental functionality to allow parsing inside tags.

  • Loading branch information...
Alexia committed Aug 26, 2015
1 parent 86541fe commit 2ba36f01f0a417480c19c20bdeeee0a995aa86c3
Showing with 5 additions and 0 deletions.
  1. +3 −0 DynamicPageList.hooks.php
  2. +2 −0 DynamicPageList.php
@@ -242,6 +242,9 @@ static private function executeTag($input, array $args, Parser $parser, PPFrame
// create list and do a recursive parse of the output
$parse = new \DPL\Parse();
if (\DPL\Config::getSetting('recursiveTagParse')) {
$input = $parser->recursiveTagParse($input, $frame);
}
$text = $parse->parse($input, $parser, $reset, $eliminate, false);
if (isset($reset['templates']) && $reset['templates']) { // we can remove the templates by save/restore
@@ -117,5 +117,7 @@
//Set this to true to allow DPL to run from protected pages only. This is recommend if wiki administrators are having issues with malicious users creating computationally intensive queries.
$wgDplSettings['runFromProtectedPagesOnly'] = false;
$wgDplSettings['recursiveTagParse'] = false;
\DPL\Config::init($wgDplSettings);
?>

0 comments on commit 2ba36f0

Please sign in to comment.
You can’t perform that action at this time.