From: <var...@us...> - 2013-04-26 13:53:52
|
Revision: 8775 http://sourceforge.net/p/phpwiki/code/8775 Author: vargenau Date: 2013-04-26 13:53:49 +0000 (Fri, 26 Apr 2013) Log Message: ----------- Add () for new WikiPluginLoader Modified Paths: -------------- trunk/SOAP.php trunk/lib/CachedMarkup.php trunk/lib/EditToolbar.php trunk/lib/Template.php trunk/lib/WikiDB.php trunk/lib/WikiPluginCached.php trunk/lib/XmlRpcServer.php trunk/lib/display.php trunk/lib/plugin/InterWikiSearch.php trunk/lib/plugin/PluginManager.php trunk/lib/plugin/RecentChangesCached.php trunk/lib/plugin/SystemInfo.php trunk/lib/plugin/WikiFormRich.php Modified: trunk/SOAP.php =================================================================== --- trunk/SOAP.php 2013-04-26 13:41:37 UTC (rev 8774) +++ trunk/SOAP.php 2013-04-26 13:53:49 UTC (rev 8775) @@ -275,7 +275,7 @@ $RetArray = array(); if (!empty($plugins)) { require_once 'lib/WikiPlugin.php'; - $w = new WikiPluginLoader; + $w = new WikiPluginLoader(); foreach ($plugins as $plugin) { $pluginName = str_replace(".php", "", $plugin); $p = $w->getPlugin($pluginName, false); // second arg? @@ -293,7 +293,7 @@ global $server; checkCredentials($server, $credentials, 'change', "Help/" . $pluginname . "Plugin"); require_once 'lib/WikiPlugin.php'; - $w = new WikiPluginLoader; + $w = new WikiPluginLoader(); $synopsis = ''; $p = $w->getPlugin($pluginName, false); // second arg? // trap php files which aren't WikiPlugin~s: wikiplugin + wikiplugin_cached only @@ -319,7 +319,7 @@ $basepage = ''; ; require_once 'lib/WikiPlugin.php'; - $w = new WikiPluginLoader; + $w = new WikiPluginLoader(); $p = $w->getPlugin($pluginName, false); // second arg? $pagelist = $p->run($dbi, $pluginargs, $request, $basepage); $pages = array(); Modified: trunk/lib/CachedMarkup.php =================================================================== --- trunk/lib/CachedMarkup.php 2013-04-26 13:41:37 UTC (rev 8774) +++ trunk/lib/CachedMarkup.php 2013-04-26 13:53:49 UTC (rev 8775) @@ -863,7 +863,7 @@ if (!$loader) { include_once 'lib/WikiPlugin.php'; - $loader = new WikiPluginLoader; + $loader = new WikiPluginLoader(); } return $loader; } Modified: trunk/lib/EditToolbar.php =================================================================== --- trunk/lib/EditToolbar.php 2013-04-26 13:41:37 UTC (rev 8774) +++ trunk/lib/EditToolbar.php 2013-04-26 13:53:49 UTC (rev 8775) @@ -346,7 +346,7 @@ if (!empty($plugins)) { $plugin_js = ''; require_once 'lib/WikiPlugin.php'; - $w = new WikiPluginLoader; + $w = new WikiPluginLoader(); foreach ($plugins as $plugin) { $pluginName = str_replace(".php", "", $plugin); if (in_array($pluginName, $AllAllowedPlugins)) { Modified: trunk/lib/Template.php =================================================================== --- trunk/lib/Template.php 2013-04-26 13:41:37 UTC (rev 8774) +++ trunk/lib/Template.php 2013-04-26 13:53:49 UTC (rev 8775) @@ -84,7 +84,7 @@ static $loader; if (empty($loader)) - $loader = new WikiPluginLoader; + $loader = new WikiPluginLoader(); $this->_print($loader->expandPI($pi, $this->_request, $this, $this->_basepage)); } Modified: trunk/lib/WikiDB.php =================================================================== --- trunk/lib/WikiDB.php 2013-04-26 13:41:37 UTC (rev 8774) +++ trunk/lib/WikiDB.php 2013-04-26 13:53:49 UTC (rev 8775) @@ -1089,7 +1089,7 @@ array('loadfile', 'upgrade')) ) { require_once 'lib/WikiPlugin.php'; - $w = new WikiPluginLoader; + $w = new WikiPluginLoader(); $p = $w->getPlugin("RecentChangesCached", false); $p->box_update(false, $GLOBALS['request'], $this->_pagename); } Modified: trunk/lib/WikiPluginCached.php =================================================================== --- trunk/lib/WikiPluginCached.php 2013-04-26 13:41:37 UTC (rev 8774) +++ trunk/lib/WikiPluginCached.php 2013-04-26 13:53:49 UTC (rev 8775) @@ -861,7 +861,7 @@ $pluginname = $plugincall['pluginname']; $argarray = $plugincall['arguments']; - $loader = new WikiPluginLoader; + $loader = new WikiPluginLoader(); $plugin = $loader->getPlugin($pluginname); // cache empty, but image maps have to be created _inline_ Modified: trunk/lib/XmlRpcServer.php =================================================================== --- trunk/lib/XmlRpcServer.php 2013-04-26 13:41:37 UTC (rev 8774) +++ trunk/lib/XmlRpcServer.php 2013-04-26 13:53:49 UTC (rev 8775) @@ -709,7 +709,7 @@ $RetArray = array(); if (!empty($plugins)) { require_once 'lib/WikiPlugin.php'; - $w = new WikiPluginLoader; + $w = new WikiPluginLoader(); foreach ($plugins as $plugin) { $pluginName = str_replace(".php", "", $plugin); $p = $w->getPlugin($pluginName, false); // second arg? @@ -741,7 +741,7 @@ $pluginName = short_string_decode($ParamPlugin->scalarval()); require_once 'lib/WikiPlugin.php'; - $w = new WikiPluginLoader; + $w = new WikiPluginLoader(); $synopsis = ''; $p = $w->getPlugin($pluginName, false); // second arg? // trap php files which aren't WikiPlugin~s: wikiplugin + wikiplugin_cached only @@ -784,7 +784,7 @@ $basepage = ''; //$pluginName; require_once 'lib/WikiPlugin.php'; - $w = new WikiPluginLoader; + $w = new WikiPluginLoader(); $p = $w->getPlugin($pluginName, false); // second arg? $pagelist = $p->run($dbi, $plugin_args, $request, $basepage); $list = array(); Modified: trunk/lib/display.php =================================================================== --- trunk/lib/display.php 2013-04-26 13:41:37 UTC (rev 8774) +++ trunk/lib/display.php 2013-04-26 13:53:49 UTC (rev 8775) @@ -129,7 +129,7 @@ // Need the pagelist from the first plugin foreach ($transformedContent->_content as $cached_element) { if (is_a($cached_element, "Cached_PluginInvocation")) { - $loader = new WikiPluginLoader; + $loader = new WikiPluginLoader(); $markup = null; // return the first found pagelist $pagelist = $loader->expandPI($cached_element->_pi, $request, Modified: trunk/lib/plugin/InterWikiSearch.php =================================================================== --- trunk/lib/plugin/InterWikiSearch.php 2013-04-26 13:41:37 UTC (rev 8774) +++ trunk/lib/plugin/InterWikiSearch.php 2013-04-26 13:53:49 UTC (rev 8775) @@ -106,7 +106,7 @@ ? WikiLink($moniker) : $moniker); - $w = new WikiPluginLoader; + $w = new WikiPluginLoader(); $p = $w->getPlugin('ExternalSearch'); $argstr = sprintf('url="%s"', addslashes($interurl)); $searchtd = HTML::td($p->run($dbi, $argstr, $request, $basepage)); Modified: trunk/lib/plugin/PluginManager.php =================================================================== --- trunk/lib/plugin/PluginManager.php 2013-04-26 13:41:37 UTC (rev 8774) +++ trunk/lib/plugin/PluginManager.php 2013-04-26 13:53:49 UTC (rev 8775) @@ -97,7 +97,7 @@ $tbody = HTML::tbody(); $row_no = 0; - $w = new WikiPluginLoader; + $w = new WikiPluginLoader(); foreach ($plugins as $pluginName) { $pluginName = str_replace(".php", "", $pluginName); Modified: trunk/lib/plugin/RecentChangesCached.php =================================================================== --- trunk/lib/plugin/RecentChangesCached.php 2013-04-26 13:41:37 UTC (rev 8774) +++ trunk/lib/plugin/RecentChangesCached.php 2013-04-26 13:53:49 UTC (rev 8775) @@ -67,7 +67,7 @@ $changes = $plugin->getChanges($dbi, $args); return $plugin->format($changes, $args); /* - $loader = new WikiPluginLoader; + $loader = new WikiPluginLoader(); return $loader->expandPI('<?plugin RecentChanges ' . WikiPluginCached::glueArgs($argarray) . ' ?>', $request, $this, $basepage); Modified: trunk/lib/plugin/SystemInfo.php =================================================================== --- trunk/lib/plugin/SystemInfo.php 2013-04-26 13:41:37 UTC (rev 8774) +++ trunk/lib/plugin/SystemInfo.php 2013-04-26 13:53:49 UTC (rev 8775) @@ -78,7 +78,7 @@ function getHtml($dbi, $argarray, $request, $basepage) { - $loader = new WikiPluginLoader; + $loader = new WikiPluginLoader(); return $loader->expandPI('<<SystemInfo ' . WikiPluginCached::glueArgs($argarray) // all . ' ?>', $request, $this, $basepage); Modified: trunk/lib/plugin/WikiFormRich.php =================================================================== --- trunk/lib/plugin/WikiFormRich.php 2013-04-26 13:41:37 UTC (rev 8774) +++ trunk/lib/plugin/WikiFormRich.php 2013-04-26 13:53:49 UTC (rev 8775) @@ -358,7 +358,7 @@ $pluginName = substr($input['method'], 7); $basepage = ''; require_once 'lib/WikiPlugin.php'; - $w = new WikiPluginLoader; + $w = new WikiPluginLoader(); $p = $w->getPlugin($pluginName, false); // second arg? if (!is_object($p)) trigger_error("invalid input['method'] " . $input['method'], E_USER_WARNING); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |