Index: trunk/phase3/includes/specials/SpecialRandompage.php |
— | — | @@ -23,7 +23,7 @@ |
24 | 24 | } |
25 | 25 | |
26 | 26 | public function setNamespace ( $ns ) { |
27 | | - if( $ns < NS_MAIN ) $ns = NS_MAIN; |
| 27 | + if( !$ns || $ns < NS_MAIN ) $ns = NS_MAIN; |
28 | 28 | $this->namespaces = array( $ns ); |
29 | 29 | } |
30 | 30 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -239,6 +239,8 @@ |
240 | 240 | * (bug 17761) "show/hide" link in page history in now works for the first |
241 | 241 | displayed revision if it's not the current one |
242 | 242 | * (bug 17722) Fix regression where users are unable to change temporary passwords |
| 243 | +* (bug 17799) Special:Random no longer throws a database error when a non- |
| 244 | + namespace is given, silently falls back to NS_MAIN |
243 | 245 | |
244 | 246 | == API changes in 1.15 == |
245 | 247 | * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions |