Index: trunk/phase3/includes/specials/SpecialRandompage.php |
— | — | @@ -88,13 +88,13 @@ |
89 | 89 | $redirect = $this->isRedirect() ? 1 : 0; |
90 | 90 | |
91 | 91 | $extra = $wgExtraRandompageSQL ? "AND ($wgExtraRandompageSQL)" : ""; |
| 92 | + $extra .= $this->addExtraSQL() ? "AND (".$this-addExtraSQL().")" : ""; |
92 | 93 | $sql = "SELECT page_title, page_namespace |
93 | 94 | FROM $page $use_index |
94 | 95 | WHERE page_namespace IN ( $ns ) |
95 | 96 | AND page_is_redirect = $redirect |
96 | 97 | AND page_random >= $randstr |
97 | 98 | $extra |
98 | | - AND (".$this->addExtraSQL().") |
99 | 99 | ORDER BY page_random"; |
100 | 100 | |
101 | 101 | $sql = $dbr->limitResult( $sql, 1, 0 ); |