dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* Remove some hardcoded 0 instead of NS_MAIN
[lhc/web/wiklou.git]
/
includes
/
SpecialRandompage.php
diff --git
a/includes/SpecialRandompage.php
b/includes/SpecialRandompage.php
index
9a9326c
..
7cd7ff0
100644
(file)
--- a/
includes/SpecialRandompage.php
+++ b/
includes/SpecialRandompage.php
@@
-34,7
+34,7
@@
function wfSpecialRandompage() {
}
$sqlget = "SELECT page_id,page_title
FROM $page $use_index
- WHERE page_namespace=
0
AND page_is_redirect=0 $extra
+ WHERE page_namespace=
".NS_MAIN."
AND page_is_redirect=0 $extra
AND page_random>$randstr
ORDER BY page_random
LIMIT 1";