Index: trunk/phase3/includes/specials/SpecialUnwatchedpages.php |
— | — | @@ -20,11 +20,9 @@ |
21 | 21 | function isSyndicated() { return false; } |
22 | 22 | |
23 | 23 | function getSQL() { |
24 | | - global $wgContentNamespaces; |
25 | 24 | $dbr = wfGetDB( DB_SLAVE ); |
26 | 25 | list( $page, $watchlist ) = $dbr->tableNamesN( 'page', 'watchlist' ); |
27 | | - $content = implode(',',$wgContentNamespaces); |
28 | | - $content = $content ? $content : NS_MAIN; |
| 26 | + $mwns = NS_MEDIAWIKI; |
29 | 27 | return |
30 | 28 | " |
31 | 29 | SELECT |
— | — | @@ -34,7 +32,7 @@ |
35 | 33 | page_namespace as value |
36 | 34 | FROM $page |
37 | 35 | LEFT JOIN $watchlist ON wl_namespace = page_namespace AND page_title = wl_title |
38 | | - WHERE wl_title IS NULL AND page_is_redirect = 0 AND page_namespace IN ($content) |
| 36 | + WHERE wl_title IS NULL AND page_is_redirect = 0 AND page_namespace<>$mwns |
39 | 37 | "; |
40 | 38 | } |
41 | 39 | |