setArticleRelated required in more places than I realised at first
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 17 Jan 2004 15:12:33 +0000 (15:12 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 17 Jan 2004 15:12:33 +0000 (15:12 +0000)
includes/GlobalFunctions.php
includes/SearchEngine.php
includes/SpecialPreferences.php
includes/SpecialUserlogin.php

index e945a31..b0a0fd1 100644 (file)
@@ -335,7 +335,7 @@ function wfSpecialPage()
        $sysopSP = $wgLang->getSysopSpecialPages();
        $devSP = $wgLang->getDeveloperSpecialPages();
 
-       $wgOut->setArticleFlag( false );
+       $wgOut->setArticleRelated( false );
        $wgOut->setRobotpolicy( "noindex,follow" );
 
        $par = NULL;
index 35a4be1..95dd539 100644 (file)
@@ -154,7 +154,7 @@ class SearchEngine {
                $wgOut->setPageTitle( wfMsg( "searchresults" ) );
                $q = wfMsg( "searchquery", htmlspecialchars( $this->mUsertext ) );
                $wgOut->setSubtitle( $q );
-               $wgOut->setArticleFlag( false );
+               $wgOut->setArticleRelated( false );
                $wgOut->setRobotpolicy( "noindex,nofollow" );
 
                $sk = $wgUser->getSkin();
index 6c0c396..da71418 100644 (file)
@@ -198,7 +198,7 @@ function wfSpecialPreferences()
        global $wpSearchLines, $wpSearchChars, $wpStubs, $wgValidSkinNames;
 
        $wgOut->setPageTitle( wfMsg( "preferences" ) );
-       $wgOut->setArticleFlag( false );
+       $wgOut->setArticleRelated( false );
        $wgOut->setRobotpolicy( "noindex,nofollow" );
 
        if ( "" != $err ) {
index 7daa17c..0927e30 100644 (file)
@@ -54,7 +54,7 @@ function wfSpecialUserlogin()
 
        $wgOut->setPageTitle( wfMsg( "accmailtitle" ) );
        $wgOut->setRobotpolicy( "noindex,nofollow" );
-       $wgOut->setArticleFlag( false );
+       $wgOut->setArticleRelated( false );
 
        $wgOut->addWikiText( wfMsg( "accmailtext", $u->getName(), $u->getEmail() ) );
        $wgOut->returnToMain( false );
@@ -250,7 +250,7 @@ function wfSpecialUserlogin()
 
        $wgOut->setPageTitle( wfMsg( "loginsuccesstitle" ) );
        $wgOut->setRobotpolicy( "noindex,nofollow" );
-       $wgOut->setArticleFlag( false );
+       $wgOut->setArticleRelated( false );
        $wgOut->addHTML( $msg . "\n<p>" );
        $wgOut->returnToMain();
 }
@@ -261,7 +261,7 @@ function userNotPrivilegedMessage()
        
        $wgOut->setPageTitle( wfMsg( "whitelistacctitle" ) );
        $wgOut->setRobotpolicy( "noindex,nofollow" );
-       $wgOut->setArticleFlag( false );
+       $wgOut->setArticleRelated( false );
 
        $wgOut->addWikiText( wfMsg( "whitelistacctext" ) );
        
@@ -299,7 +299,7 @@ function userNotPrivilegedMessage()
 
        $wgOut->setPageTitle( wfMsg( "userlogin" ) );
        $wgOut->setRobotpolicy( "noindex,nofollow" );
-       $wgOut->setArticleFlag( false );
+       $wgOut->setArticleRelated( false );
 
        if ( "" == $err ) {
                 $lp = wfMsg( "loginprompt" );