From: Tim Starling Date: Sun, 2 Apr 2006 03:11:33 +0000 (+0000) Subject: Don't list pages from the MediaWiki namespace, it makes updateSpecialPages.php take... X-Git-Tag: 1.6.0~81 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=752c928387e3c4b34bfa3340d5b9121eb81d79e1;p=lhc%2Fweb%2Fwiklou.git Don't list pages from the MediaWiki namespace, it makes updateSpecialPages.php take all day for small wikis, and we have a lot of small wikis. --- diff --git a/includes/SpecialUnwatchedpages.php b/includes/SpecialUnwatchedpages.php index 1111f1ca29..aca2a3379d 100644 --- a/includes/SpecialUnwatchedpages.php +++ b/includes/SpecialUnwatchedpages.php @@ -26,6 +26,7 @@ class UnwatchedpagesPage extends QueryPage { function getSQL() { $dbr =& wfGetDB( DB_SLAVE ); extract( $dbr->tableNames( 'page', 'watchlist' ) ); + $mwns = NS_MEDIAWIKI; return " SELECT @@ -35,7 +36,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 + WHERE wl_title IS NULL AND page_is_redirect = 0 AND page_namespace<>$mwns "; }