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