From: <var...@us...> - 2021-02-22 20:31:06
|
Revision: 10262 http://sourceforge.net/p/phpwiki/code/10262 Author: vargenau Date: 2021-02-22 20:31:04 +0000 (Mon, 22 Feb 2021) Log Message: ----------- plugin OrphanedPages: better test boolean argument "noheader" Modified Paths: -------------- trunk/lib/plugin/OrphanedPages.php Modified: trunk/lib/plugin/OrphanedPages.php =================================================================== --- trunk/lib/plugin/OrphanedPages.php 2021-02-22 20:28:30 UTC (rev 10261) +++ trunk/lib/plugin/OrphanedPages.php 2021-02-22 20:31:04 UTC (rev 10262) @@ -72,6 +72,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")); + } + if (($include_empty == '0') || ($include_empty == 'false')) { $include_empty = false; } elseif (($include_empty == '1') || ($include_empty == 'true')) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |