Merge "Don't fallback from uk to ru"
[lhc/web/wiklou.git] / includes / specials / SpecialUnwatchedpages.php
index 0cbf00d..ae375b2 100644 (file)
@@ -64,6 +64,7 @@ class UnwatchedpagesPage extends QueryPage {
        }
 
        public function getQueryInfo() {
+               $dbr = wfGetDB( DB_REPLICA );
                return [
                        'tables' => [ 'page', 'watchlist' ],
                        'fields' => [
@@ -74,7 +75,7 @@ class UnwatchedpagesPage extends QueryPage {
                        'conds' => [
                                'wl_title IS NULL',
                                'page_is_redirect' => 0,
-                               "page_namespace != '" . NS_MEDIAWIKI . "'"
+                               'page_namespace != ' . $dbr->addQuotes( NS_MEDIAWIKI ),
                        ],
                        'join_conds' => [ 'watchlist' => [
                                'LEFT JOIN', [ 'wl_title = page_title',