r51544 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51543‎ | r51544 | r51545 >
Date:17:01, 6 June 2009
Author:robin
Status:ok
Tags:
Comment:
fix r51541
Modified paths:
  • /trunk/phase3/includes/specials/SpecialRandompage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialRandompage.php
@@ -88,13 +88,13 @@
8989 $redirect = $this->isRedirect() ? 1 : 0;
9090
9191 $extra = $wgExtraRandompageSQL ? "AND ($wgExtraRandompageSQL)" : "";
 92+ $extra .= $this->addExtraSQL() ? "AND (".$this-addExtraSQL().")" : "";
9293 $sql = "SELECT page_title, page_namespace
9394 FROM $page $use_index
9495 WHERE page_namespace IN ( $ns )
9596 AND page_is_redirect = $redirect
9697 AND page_random >= $randstr
9798 $extra
98 - AND (".$this->addExtraSQL().")
9999 ORDER BY page_random";
100100
101101 $sql = $dbr->limitResult( $sql, 1, 0 );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r51541Add function addExtraSQL() to RandomPage as an alternative to $wgExtraRandomp...robin16:43, 6 June 2009

Status & tagging log