Extension talk:Lockdown/hiding pages

Note, that similar things should be done in a few other files...

I've done it in: global $wgUser, $wgContLang; + if ( namespaceIsVisible( $result->namespace ) ) { $fromObj = Title::makeTitle( $result->namespace, $result->title ); ... + }  global $wgContLang; + if ( namespaceIsVisible( $result->namespace ) ) { $fname = 'DoubleRedirectsPage::formatResult'; ... + }
 * includes/SpecialBrokenRedirects.php -- in function formatResult (similar to Special:Listredirects patch):
 * includes/SpecialDoubleRedirects.php -- in function formatResult (similar to Special:Listredirects patch):

foreach ( $rows as $row ) +    if ( namespaceIsVisible( $row->page_namespace ) ) { $nt = Title::makeTitle( $row->page_namespace, $row->page_title ); ... +    }
 * includes/SpecialWhatlinkshere.php -- in function showIndirectLinks in loop (similar to Special:Prefixindex patch):

...  if( is_null( $skin ) ) $skin = $wgUser->getSkin; + if ( namespaceIsVisible( $row->page_namespace ) ) { $title = Title::makeTitleSafe( $row->page_namespace, $row->page_title ); ... + }
 * includes/SpecialProtectedpages.php -- in function formatRow:

--zuo (85.222.69.4 03:21, 20 April 2008 (UTC))

Please update the scripts for Mediawiki 1.16. They are needed. Thank you very much for your help guys!

Special:LinkSearch

 * function formatResult:

function formatResult( $skin, $result ) { +              if ( namespaceIsVisible( $result->namespace ) ) {

$title = Title::makeTitle( $result->namespace, $result->title ); $url = $result->url; $pageLink = $skin->makeKnownLinkObj( $title ); $urlLink = $skin->makeExternalLink( $url, $url );

return wfMsgHtml( 'linksearch-line', $urlLink, $pageLink ); +              }else{ +                      return ''; +              }	}
 * ⇨ Dr Brains ∞ Doléances ∞ 13:35, 20 November 2010 (UTC)

Special Page

 * function formatRow:

+              if ( namespaceIsVisible( $page->getNamespace ) ) { return $ret; +              }else{ +                      return ' '; +              }
 * ⇨ Dr Brains ∞ Doléances ∞ 13:35, 20 November 2010 (UTC)

RSS Atom Feed Page

 * function feed:

if( $pager->getNumRows > 0 ) { while( $row = $pager->mResult->fetchObject ) { +                              $title = Title::MakeTitle( intval( $row->page_namespace ), $row->page_title ); +                              if(namespaceIsVisible( $title->getNamespace )){ $feed->outItem( $this->feedItem( $row ) ); +                             }			}		}
 * ⇨ Dr Brains ∞ Doléances ∞ 13:35, 20 November 2010 (UTC)

Special:CategoryTree
(probably in CategoryTreeFunctions.php)


 * ⇨ Dr Brains ∞ Doléances ∞ 13:35, 20 November 2010 (UTC)