Index: trunk/phase3/includes/SpecialRandompage.php |
— | — | @@ -16,17 +16,7 @@ |
17 | 17 | global $wgOut, $wgContLang; |
18 | 18 | |
19 | 19 | $rnd = new RandomPage(); |
20 | | - |
21 | | - if ( $par == null ) { |
22 | | - // Select a random content namespace to use. |
23 | | - global $wgContentNamespaces; |
24 | | - $n = array_rand( $wgContentNamespaces ); |
25 | | - $rnd->setNamespace( $wgContentNamespaces[$n] ); |
26 | | - } |
27 | | - else { |
28 | | - $rnd->setNamespace( $wgContLang->getNsIndex( $par ) ); |
29 | | - } |
30 | | - |
| 20 | + $rnd->setNamespace( $wgContLang->getNsIndex( $par ) ); |
31 | 21 | $rnd->setRedirect( false ); |
32 | 22 | |
33 | 23 | $title = $rnd->getRandomTitle(); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -99,8 +99,6 @@ |
100 | 100 | policies. This can be done only by users with the 'editrobots' permission |
101 | 101 | * Use $wgJobClasses to determine the correct Job to instantiate for a particular |
102 | 102 | queued task; allows extensions to introduce custom jobs |
103 | | -* Special:Randompage with no parameters now selects a random page from any |
104 | | - namespace in $wgContentNamespaces, rather than just from NS_MAIN. |
105 | 103 | |
106 | 104 | == Bugfixes since 1.10 == |
107 | 105 | |