Revision: 10249
http://sourceforge.net/p/phpwiki/code/10249
Author: vargenau
Date: 2021-02-22 12:28:09 +0000 (Mon, 22 Feb 2021)
Log Message:
-----------
plugin AtomFeed: better test boolean argument "titleonly"
Modified Paths:
--------------
trunk/lib/plugin/AtomFeed.php
Modified: trunk/lib/plugin/AtomFeed.php
===================================================================
--- trunk/lib/plugin/AtomFeed.php 2021-02-22 12:21:40 UTC (rev 10248)
+++ trunk/lib/plugin/AtomFeed.php 2021-02-22 12:28:09 UTC (rev 10249)
@@ -58,6 +58,15 @@
function run($dbi, $argstr, &$request, $basepage)
{
extract($this->getArgs($argstr, $request));
+
+ if (($titleonly == '0') || ($titleonly == 'false')) {
+ $titleonly = false;
+ } elseif (($titleonly == '1') || ($titleonly == 'true')) {
+ $titleonly = true;
+ } else {
+ return $this->error(sprintf(_("Argument '%s' must be a boolean"), "titleonly"));
+ }
+
$parser = new AtomParser();
assert(!empty($url));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|