From: <var...@us...> - 2013-06-14 15:20:47
|
Revision: 8809 http://sourceforge.net/p/phpwiki/code/8809 Author: vargenau Date: 2013-06-14 15:20:44 +0000 (Fri, 14 Jun 2013) Log Message: ----------- Add braces Modified Paths: -------------- trunk/lib/WikiPlugin.php Modified: trunk/lib/WikiPlugin.php =================================================================== --- trunk/lib/WikiPlugin.php 2013-06-14 14:44:05 UTC (rev 8808) +++ trunk/lib/WikiPlugin.php 2013-06-14 15:20:44 UTC (rev 8809) @@ -130,22 +130,20 @@ } foreach (array_merge($argstr_args, $argstr_defaults) as $arg => $val) { - // TODO: where the heck comes this from? Put the new method over there and peace. - /*if ($request and $request->getArg('pagename') == _("PhpWikiAdministration") - and $arg == 'overwrite') // silence this warning - ;*/ - if ($this->allow_undeclared_arg($arg, $val)) + if ($this->allow_undeclared_arg($arg, $val)) { $args[$arg] = $val; + } } // Add special handling of pages and exclude args to accept <! plugin-list !> // and split explodePageList($args['exclude']) => array() // TODO : handle p[] pagehash foreach (array('pages', 'exclude') as $key) { - if (!empty($args[$key]) and array_key_exists($key, $defaults)) + if (!empty($args[$key]) and array_key_exists($key, $defaults)) { $args[$key] = is_string($args[$key]) ? explodePageList($args[$key]) : $args[$key]; // <! plugin-list !> + } } return $args; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |