From: <var...@us...> - 2011-04-13 09:44:45
|
Revision: 8038 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8038&view=rev Author: vargenau Date: 2011-04-13 09:44:34 +0000 (Wed, 13 Apr 2011) Log Message: ----------- Better way to check we are in dump mode Modified Paths: -------------- trunk/lib/plugin/RandomPage.php Modified: trunk/lib/plugin/RandomPage.php =================================================================== --- trunk/lib/plugin/RandomPage.php 2011-04-11 15:39:53 UTC (rev 8037) +++ trunk/lib/plugin/RandomPage.php 2011-04-13 09:44:34 UTC (rev 8038) @@ -51,14 +51,12 @@ function run($dbi, $argstr, &$request, $basepage) { - global $WikiTheme; - $args = $this->getArgs($argstr, $request); extract($args); // Redirect would break HTML dump - if (!empty($WikiTheme->DUMP_MODE)) { - $redirect = false; + if ($request->getArg('action') != 'browse') { + return $this->disabled("(action != 'browse')"); } // fix deprecated arg This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |