From: <var...@us...> - 2011-04-08 12:38:38
|
Revision: 8022 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8022&view=rev Author: vargenau Date: 2011-04-08 12:38:32 +0000 (Fri, 08 Apr 2011) Log Message: ----------- Redirect breaks HTML dump Modified Paths: -------------- trunk/lib/plugin/RandomPage.php Modified: trunk/lib/plugin/RandomPage.php =================================================================== --- trunk/lib/plugin/RandomPage.php 2011-04-05 17:19:14 UTC (rev 8021) +++ trunk/lib/plugin/RandomPage.php 2011-04-08 12:38:32 UTC (rev 8022) @@ -50,9 +50,17 @@ } 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; + } + // fix deprecated arg if (is_integer($pages)) { $numpages = $pages; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |