From ca678ded6b41a93c54d9ff34df04f2a8a6155ee9 Mon Sep 17 00:00:00 2001 From: vargenau Date: Wed, 10 Sep 2014 14:42:07 +0000 Subject: [PATCH] Same signature for all functions run git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@9065 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/plugin/AllPages.php | 3 +-- lib/plugin/CategoryPage.php | 2 +- lib/plugin/CreateBib.php | 2 +- lib/plugin/JabberPresence.php | 2 +- lib/plugin/LdapSearch.php | 2 +- lib/plugin/LinkDatabase.php | 2 +- 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/lib/plugin/AllPages.php b/lib/plugin/AllPages.php index 12e853fb0..91086a726 100644 --- a/lib/plugin/AllPages.php +++ b/lib/plugin/AllPages.php @@ -54,8 +54,7 @@ class WikiPlugin_AllPages // exclude arg allows multiple pagenames exclude=HomePage,RecentChanges // sortby: [+|-] pagename|mtime|hits - // 2004-07-08 22:05:35 rurban: turned off &$request to prevent from strange bug below - function run($dbi, $argstr, $request, $basepage) + function run($dbi, $argstr, &$request, $basepage) { $args = $this->getArgs($argstr, $request); diff --git a/lib/plugin/CategoryPage.php b/lib/plugin/CategoryPage.php index 683ea476a..fa4ee3ccc 100644 --- a/lib/plugin/CategoryPage.php +++ b/lib/plugin/CategoryPage.php @@ -56,7 +56,7 @@ class WikiPlugin_CategoryPage 'showbuds' => false); } - function run($dbi, $argstr, &$request) + function run($dbi, $argstr, &$request, $basepage) { $args = $this->getArgs($argstr, $request); diff --git a/lib/plugin/CreateBib.php b/lib/plugin/CreateBib.php index f91e2bac8..a4bcd0a6b 100644 --- a/lib/plugin/CreateBib.php +++ b/lib/plugin/CreateBib.php @@ -96,7 +96,7 @@ class WikiPlugin_CreateBib } - function run($dbi, $argstr, $request, $basepage) + function run($dbi, $argstr, &$request, $basepage) { extract($this->getArgs($argstr, $request)); if ($pagename) { diff --git a/lib/plugin/JabberPresence.php b/lib/plugin/JabberPresence.php index a883e5ef0..8c6c487a0 100644 --- a/lib/plugin/JabberPresence.php +++ b/lib/plugin/JabberPresence.php @@ -52,7 +52,7 @@ class WikiPlugin_JabberPresence 'iconset' => "gabber"); } - function run($dbi, $argstr, $request) + function run($dbi, $argstr, &$request, $basepage) { extract($this->getArgs($argstr, $request)); // Any text that is returned will not be further transformed, diff --git a/lib/plugin/LdapSearch.php b/lib/plugin/LdapSearch.php index 3ad33af55..46060622d 100644 --- a/lib/plugin/LdapSearch.php +++ b/lib/plugin/LdapSearch.php @@ -69,7 +69,7 @@ class WikiPlugin_LdapSearch // I ought to require the ldap extension, but fail sanely, if I cant get it. // - however at the moment this seems to work as is - function run($dbi, $argstr, $request) + function run($dbi, $argstr, &$request, $basepage) { if (!function_exists('ldap_connect')) { if (!loadPhpExtension('ldap')) diff --git a/lib/plugin/LinkDatabase.php b/lib/plugin/LinkDatabase.php index b90197f9a..66059fcf8 100644 --- a/lib/plugin/LinkDatabase.php +++ b/lib/plugin/LinkDatabase.php @@ -72,7 +72,7 @@ class WikiPlugin_LinkDatabase $this->run($dbi, WikiPluginCached::glueArgs($argarray), $request, $basepage); } - function run($dbi, $argstr, $request, $basepage) + function run($dbi, $argstr, &$request, $basepage) { global $WikiTheme; $args = $this->getArgs($argstr, $request); -- 2.45.0