|
From: <var...@us...> - 2021-02-23 18:03:49
|
Revision: 10274
http://sourceforge.net/p/phpwiki/code/10274
Author: vargenau
Date: 2021-02-23 18:03:47 +0000 (Tue, 23 Feb 2021)
Log Message:
-----------
plugin WantedPages: better test boolean argument "noheader"
Modified Paths:
--------------
trunk/lib/plugin/WantedPages.php
Modified: trunk/lib/plugin/WantedPages.php
===================================================================
--- trunk/lib/plugin/WantedPages.php 2021-02-23 18:00:42 UTC (rev 10273)
+++ trunk/lib/plugin/WantedPages.php 2021-02-23 18:03:47 UTC (rev 10274)
@@ -83,6 +83,15 @@
: $args['exclude_from']; // <! plugin-list !>
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 ($page == _("WantedPages")) $page = "";
// There's probably a more memory-efficient way to do this (eg
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|