From: <var...@us...> - 2021-02-22 20:19:13
|
Revision: 10259 http://sourceforge.net/p/phpwiki/code/10259 Author: vargenau Date: 2021-02-22 20:19:10 +0000 (Mon, 22 Feb 2021) Log Message: ----------- plugin ListSubpages: better test boolean argument "noheader" Modified Paths: -------------- trunk/lib/plugin/ListSubpages.php Modified: trunk/lib/plugin/ListSubpages.php =================================================================== --- trunk/lib/plugin/ListSubpages.php 2021-02-22 18:44:04 UTC (rev 10258) +++ trunk/lib/plugin/ListSubpages.php 2021-02-22 20:19:10 UTC (rev 10259) @@ -87,6 +87,14 @@ } extract($args); + if (($noheader == '0') || ($noheader == 'false')) { + $noheader = false; + } elseif (($noheader == '1') || ($noheader == 'true')) { + $noheader = true; + } else { + return $this->error(sprintf(_("Argument '%s' must be a boolean"), "noheader")); + } + $content = HTML(); //$subpages = array_reverse($subpages); // TODO: why? if ($maxpages) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |