From fef6f30c8cb851d2b2475288a5f62c34781af3fd Mon Sep 17 00:00:00 2001 From: vargenau Date: Fri, 14 Jun 2013 15:20:44 +0000 Subject: [PATCH] Add braces git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@8809 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/WikiPlugin.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/WikiPlugin.php b/lib/WikiPlugin.php index 45e4c6fd4..9ca7b1d57 100644 --- a/lib/WikiPlugin.php +++ b/lib/WikiPlugin.php @@ -130,22 +130,20 @@ class WikiPlugin } 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 // 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]; // + } } return $args; -- 2.42.0