From: Brion Vibber Date: Wed, 7 Jan 2009 00:19:09 +0000 (+0000) Subject: Reverting r45346 "(bug 16433) Special:UnwatchedPages should list unwatched pages... X-Git-Tag: 1.31.0-rc.0~43540 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=e2df6625f063fd7e95d537a231c53fa42c82eb10;p=lhc%2Fweb%2Fwiklou.git Reverting r45346 "(bug 16433) Special:UnwatchedPages should list unwatched pages in the content namespace(s)" I believe the reason for this special page is to help watch for vandalism on pages that no user is watching. Vandalism isn't just something that happens in content namespaces... --- diff --git a/includes/specials/SpecialUnwatchedpages.php b/includes/specials/SpecialUnwatchedpages.php index 3a586f7966..64ab372995 100644 --- a/includes/specials/SpecialUnwatchedpages.php +++ b/includes/specials/SpecialUnwatchedpages.php @@ -20,11 +20,9 @@ class UnwatchedpagesPage extends QueryPage { function isSyndicated() { return false; } function getSQL() { - global $wgContentNamespaces; $dbr = wfGetDB( DB_SLAVE ); list( $page, $watchlist ) = $dbr->tableNamesN( 'page', 'watchlist' ); - $content = implode(',',$wgContentNamespaces); - $content = $content ? $content : NS_MAIN; + $mwns = NS_MEDIAWIKI; return " SELECT @@ -34,7 +32,7 @@ class UnwatchedpagesPage extends QueryPage { page_namespace as value FROM $page LEFT JOIN $watchlist ON wl_namespace = page_namespace AND page_title = wl_title - WHERE wl_title IS NULL AND page_is_redirect = 0 AND page_namespace IN ($content) + WHERE wl_title IS NULL AND page_is_redirect = 0 AND page_namespace<>$mwns "; }