msg( 'deadendpagestext' )->parseAsBlock(); } /** * LEFT JOIN is expensive * * @return bool */ function isExpensive() { return true; } function isSyndicated() { return false; } /** * @return bool */ function sortDescending() { return false; } function getQueryInfo() { return [ 'tables' => [ 'page', 'pagelinks' ], 'fields' => [ 'namespace' => 'page_namespace', 'title' => 'page_title', 'value' => 'page_title' ], 'conds' => [ 'pl_from IS NULL', 'page_namespace' => MWNamespace::getContentNamespaces(), 'page_is_redirect' => 0 ], 'join_conds' => [ 'pagelinks' => [ 'LEFT JOIN', [ 'page_id=pl_from' ] ] ] ]; } function getOrderFields() { // For some crazy reason ordering by a constant // causes a filesort if ( count( MWNamespace::getContentNamespaces() ) > 1 ) { return [ 'page_namespace', 'page_title' ]; } else { return [ 'page_title' ]; } } protected function getGroupName() { return 'maintenance'; } }