Index: trunk/phase3/includes/ProtectionForm.php |
— | — | @@ -103,7 +103,7 @@ |
104 | 104 | function show( $err = null ) { |
105 | 105 | global $wgOut, $wgUser; |
106 | 106 | |
107 | | - $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
| 107 | + $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
108 | 108 | |
109 | 109 | if( is_null( $this->mTitle ) || |
110 | 110 | $this->mTitle->getNamespace() == NS_MEDIAWIKI ) { |
Index: trunk/phase3/includes/Article.php |
— | — | @@ -204,7 +204,7 @@ |
205 | 205 | |
206 | 206 | if ( 0 == $this->getID() ) { |
207 | 207 | wfProfileOut( __METHOD__ ); |
208 | | - $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
| 208 | + $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
209 | 209 | |
210 | 210 | if ( $this->mTitle->getNamespace() == NS_MEDIAWIKI ) { |
211 | 211 | $wgMessageCache->loadAllMessages(); |
— | — | @@ -822,7 +822,7 @@ |
823 | 823 | |
824 | 824 | # We're looking at an old revision |
825 | 825 | if ( !empty( $oldid ) ) { |
826 | | - $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
| 826 | + $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
827 | 827 | if( is_null( $this->mRevision ) ) { |
828 | 828 | // FIXME: This would be a nice place to load the 'no such page' text. |
829 | 829 | } else { |
— | — | @@ -1034,7 +1034,7 @@ |
1035 | 1035 | "</form>\n", $msg ); |
1036 | 1036 | |
1037 | 1037 | $wgOut->setPageTitle( $this->mTitle->getPrefixedText() ); |
1038 | | - $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
| 1038 | + $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
1039 | 1039 | $wgOut->addHTML( $msg ); |
1040 | 1040 | } |
1041 | 1041 | } |
— | — | @@ -1696,7 +1696,7 @@ |
1697 | 1697 | |
1698 | 1698 | if( $this->doWatch() ) { |
1699 | 1699 | $wgOut->setPagetitle( wfMsg( 'addedwatch' ) ); |
1700 | | - $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
| 1700 | + $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
1701 | 1701 | |
1702 | 1702 | $wgOut->addWikiMsg( 'addedwatchtext', $this->mTitle->getPrefixedText() ); |
1703 | 1703 | } |
— | — | @@ -1741,7 +1741,7 @@ |
1742 | 1742 | |
1743 | 1743 | if( $this->doUnwatch() ) { |
1744 | 1744 | $wgOut->setPagetitle( wfMsg( 'removedwatch' ) ); |
1745 | | - $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
| 1745 | + $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
1746 | 1746 | |
1747 | 1747 | $wgOut->addWikiMsg( 'removedwatchtext', $this->mTitle->getPrefixedText() ); |
1748 | 1748 | } |
— | — | @@ -2177,7 +2177,7 @@ |
2178 | 2178 | wfDebug( "Article::confirmDelete\n" ); |
2179 | 2179 | |
2180 | 2180 | $wgOut->setSubtitle( wfMsg( 'delete-backlink', $wgUser->getSkin()->makeKnownLinkObj( $this->mTitle ) ) ); |
2181 | | - $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
| 2181 | + $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
2182 | 2182 | $wgOut->addWikiMsg( 'confirmdeletetext' ); |
2183 | 2183 | |
2184 | 2184 | if( $wgUser->isAllowed( 'suppressrevision' ) ) { |
— | — | @@ -2264,7 +2264,7 @@ |
2265 | 2265 | $deleted = $this->mTitle->getPrefixedText(); |
2266 | 2266 | |
2267 | 2267 | $wgOut->setPagetitle( wfMsg( 'actioncomplete' ) ); |
2268 | | - $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
| 2268 | + $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
2269 | 2269 | |
2270 | 2270 | $loglink = '[[Special:Log/delete|' . wfMsgNoTrans( 'deletionlog' ) . ']]'; |
2271 | 2271 | |
Index: trunk/phase3/includes/ImagePage.php |
— | — | @@ -98,7 +98,7 @@ |
99 | 99 | } else { |
100 | 100 | # Just need to set the right headers |
101 | 101 | $wgOut->setArticleFlag( true ); |
102 | | - $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
| 102 | + $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
103 | 103 | $wgOut->setPageTitle( $this->mTitle->getPrefixedText() ); |
104 | 104 | $this->viewUpdates(); |
105 | 105 | } |
— | — | @@ -762,7 +762,7 @@ |
763 | 763 | function showError( $description ) { |
764 | 764 | global $wgOut; |
765 | 765 | $wgOut->setPageTitle( wfMsg( "internalerror" ) ); |
766 | | - $wgOut->setRobotpolicy( "noindex,nofollow" ); |
| 766 | + $wgOut->setRobotPolicy( "noindex,nofollow" ); |
767 | 767 | $wgOut->setArticleRelated( false ); |
768 | 768 | $wgOut->enableClientCache( false ); |
769 | 769 | $wgOut->addWikiText( $description ); |
Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -1042,7 +1042,7 @@ |
1043 | 1043 | |
1044 | 1044 | wfRunHooks( 'EditPage::showEditForm:initial', array( &$this ) ) ; |
1045 | 1045 | |
1046 | | - $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
| 1046 | + $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
1047 | 1047 | |
1048 | 1048 | # Enabled article-related sidebar, toplinks, etc. |
1049 | 1049 | $wgOut->setArticleRelated( true ); |
Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -8,7 +8,7 @@ |
9 | 9 | class OutputPage { |
10 | 10 | var $mMetatags, $mKeywords; |
11 | 11 | var $mLinktags, $mPagetitle, $mBodytext, $mDebugtext; |
12 | | - var $mHTMLtitle, $mRobotpolicy, $mIsarticle, $mPrintable; |
| 12 | + var $mHTMLtitle, $mIsarticle, $mPrintable; |
13 | 13 | var $mSubtitle, $mRedirect, $mStatusCode; |
14 | 14 | var $mLastModified, $mETag, $mCategoryLinks; |
15 | 15 | var $mScripts, $mLinkColours, $mPageLinkTitle; |
— | — | @@ -30,6 +30,9 @@ |
31 | 31 | var $mPageTitleActionText = ''; |
32 | 32 | var $mParseWarnings = array(); |
33 | 33 | |
| 34 | + private $mIndexPolicy = 'index'; |
| 35 | + private $mFollowPolicy = 'follow'; |
| 36 | + |
34 | 37 | /** |
35 | 38 | * Constructor |
36 | 39 | * Initialise private variables |
— | — | @@ -39,9 +42,8 @@ |
40 | 43 | $this->mAllowUserJs = $wgAllowUserJs; |
41 | 44 | $this->mMetatags = $this->mKeywords = $this->mLinktags = array(); |
42 | 45 | $this->mHTMLtitle = $this->mPagetitle = $this->mBodytext = |
43 | | - $this->mRedirect = $this->mLastModified = |
44 | | - $this->mSubtitle = $this->mDebugtext = $this->mRobotpolicy = |
45 | | - $this->mOnloadHandler = $this->mPageLinkTitle = ''; |
| 46 | + $this->mRedirect = $this->mLastModified = $this->mSubtitle = |
| 47 | + $this->mDebugtext = $this->mOnloadHandler = $this->mPageLinkTitle = ''; |
46 | 48 | $this->mIsArticleRelated = $this->mIsarticle = $this->mPrintable = true; |
47 | 49 | $this->mSuppressQuickbar = $this->mPrintable = false; |
48 | 50 | $this->mLanguageLinks = array(); |
— | — | @@ -223,7 +225,61 @@ |
224 | 226 | } |
225 | 227 | } |
226 | 228 | |
227 | | - public function setRobotpolicy( $str ) { $this->mRobotpolicy = $str; } |
| 229 | + /** |
| 230 | + * Set the robot policy for the page: <http://www.robotstxt.org/meta.html> |
| 231 | + * |
| 232 | + * @param $policy string The literal string to output as the contents of |
| 233 | + * the meta tag. Will be parsed according to the spec and output in |
| 234 | + * standardized form. |
| 235 | + * @return null |
| 236 | + */ |
| 237 | + public function setRobotPolicy( $policy ) { |
| 238 | + $policy = explode( ',', $policy ); |
| 239 | + $policy = array_map( 'trim', $policy ); |
| 240 | + |
| 241 | + # The default policy is follow, so if nothing is said explicitly, we |
| 242 | + # do that. |
| 243 | + if( in_array( 'nofollow', $policy ) ) { |
| 244 | + $this->mFollowPolicy = 'nofollow'; |
| 245 | + } else { |
| 246 | + $this->mFollowPolicy = 'follow'; |
| 247 | + } |
| 248 | + |
| 249 | + if( in_array( 'noindex', $policy ) ) { |
| 250 | + $this->mIndexPolicy = 'noindex'; |
| 251 | + } else { |
| 252 | + $this->mIndexPolicy = 'index'; |
| 253 | + } |
| 254 | + } |
| 255 | + |
| 256 | + /** |
| 257 | + * Set the index policy for the page, but leave the follow policy un- |
| 258 | + * touched. |
| 259 | + * |
| 260 | + * @param $policy string Either 'index' or 'noindex'. |
| 261 | + * @return null |
| 262 | + */ |
| 263 | + public function setIndexPolicy( $policy ) { |
| 264 | + $policy = trim( $policy ); |
| 265 | + if( in_array( $policy, array( 'index', 'noindex' ) ) ) { |
| 266 | + $this->mIndexPolicy = $policy; |
| 267 | + } |
| 268 | + } |
| 269 | + |
| 270 | + /** |
| 271 | + * Set the follow policy for the page, but leave the index policy un- |
| 272 | + * touched. |
| 273 | + * |
| 274 | + * @param $policy string Either 'follow' or 'nofollow'. |
| 275 | + * @return null |
| 276 | + */ |
| 277 | + public function setFollowPolicy( $policy ) { |
| 278 | + $policy = trim( $policy ); |
| 279 | + if( in_array( $policy, array( 'follow', 'nofollow' ) ) ) { |
| 280 | + $this->mFollowPolicy = $policy; |
| 281 | + } |
| 282 | + } |
| 283 | + |
228 | 284 | public function setHTMLTitle( $name ) {$this->mHTMLtitle = $name; } |
229 | 285 | public function setPageTitle( $name ) { |
230 | 286 | global $action, $wgContLang; |
— | — | @@ -879,7 +935,7 @@ |
880 | 936 | global $wgUser, $wgContLang, $wgTitle, $wgLang; |
881 | 937 | |
882 | 938 | $this->setPageTitle( wfMsg( 'blockedtitle' ) ); |
883 | | - $this->setRobotpolicy( 'noindex,nofollow' ); |
| 939 | + $this->setRobotPolicy( 'noindex,nofollow' ); |
884 | 940 | $this->setArticleRelated( false ); |
885 | 941 | |
886 | 942 | $name = User::whoIs( $wgUser->blockedBy() ); |
— | — | @@ -945,7 +1001,7 @@ |
946 | 1002 | } |
947 | 1003 | $this->setPageTitle( wfMsg( $title ) ); |
948 | 1004 | $this->setHTMLTitle( wfMsg( 'errorpagetitle' ) ); |
949 | | - $this->setRobotpolicy( 'noindex,nofollow' ); |
| 1005 | + $this->setRobotPolicy( 'noindex,nofollow' ); |
950 | 1006 | $this->setArticleRelated( false ); |
951 | 1007 | $this->enableClientCache( false ); |
952 | 1008 | $this->mRedirect = ''; |
— | — | @@ -971,7 +1027,7 @@ |
972 | 1028 | $wgTitle->getPrefixedText() . "\n"; |
973 | 1029 | $this->setPageTitle( wfMsg( 'permissionserrors' ) ); |
974 | 1030 | $this->setHTMLTitle( wfMsg( 'permissionserrors' ) ); |
975 | | - $this->setRobotpolicy( 'noindex,nofollow' ); |
| 1031 | + $this->setRobotPolicy( 'noindex,nofollow' ); |
976 | 1032 | $this->setArticleRelated( false ); |
977 | 1033 | $this->enableClientCache( false ); |
978 | 1034 | $this->mRedirect = ''; |
— | — | @@ -994,7 +1050,7 @@ |
995 | 1051 | public function versionRequired( $version ) { |
996 | 1052 | $this->setPageTitle( wfMsg( 'versionrequired', $version ) ); |
997 | 1053 | $this->setHTMLTitle( wfMsg( 'versionrequired', $version ) ); |
998 | | - $this->setRobotpolicy( 'noindex,nofollow' ); |
| 1054 | + $this->setRobotPolicy( 'noindex,nofollow' ); |
999 | 1055 | $this->setArticleRelated( false ); |
1000 | 1056 | $this->mBodytext = ''; |
1001 | 1057 | |
— | — | @@ -1012,7 +1068,7 @@ |
1013 | 1069 | |
1014 | 1070 | $this->setPageTitle( wfMsg( 'badaccess' ) ); |
1015 | 1071 | $this->setHTMLTitle( wfMsg( 'errorpagetitle' ) ); |
1016 | | - $this->setRobotpolicy( 'noindex,nofollow' ); |
| 1072 | + $this->setRobotPolicy( 'noindex,nofollow' ); |
1017 | 1073 | $this->setArticleRelated( false ); |
1018 | 1074 | $this->mBodytext = ''; |
1019 | 1075 | |
— | — | @@ -1148,7 +1204,7 @@ |
1149 | 1205 | global $wgUser, $wgTitle; |
1150 | 1206 | $skin = $wgUser->getSkin(); |
1151 | 1207 | |
1152 | | - $this->setRobotpolicy( 'noindex,nofollow' ); |
| 1208 | + $this->setRobotPolicy( 'noindex,nofollow' ); |
1153 | 1209 | $this->setArticleRelated( false ); |
1154 | 1210 | |
1155 | 1211 | // If no reason is given, just supply a default "I can't let you do |
— | — | @@ -1238,7 +1294,7 @@ |
1239 | 1295 | |
1240 | 1296 | public function showFatalError( $message ) { |
1241 | 1297 | $this->setPageTitle( wfMsg( "internalerror" ) ); |
1242 | | - $this->setRobotpolicy( "noindex,nofollow" ); |
| 1298 | + $this->setRobotPolicy( "noindex,nofollow" ); |
1243 | 1299 | $this->setArticleRelated( false ); |
1244 | 1300 | $this->enableClientCache( false ); |
1245 | 1301 | $this->mRedirect = ''; |
— | — | @@ -1386,8 +1442,8 @@ |
1387 | 1443 | global $wgVersion; |
1388 | 1444 | $this->addMeta( "generator", "MediaWiki $wgVersion" ); |
1389 | 1445 | |
1390 | | - $p = $this->mRobotpolicy; |
1391 | | - if( $p !== '' && $p != 'index,follow' ) { |
| 1446 | + $p = "{$this->mIndexPolicy},{$this->mFollowPolicy}"; |
| 1447 | + if( $p !== 'index,follow' ) { |
1392 | 1448 | // http://www.robotstxt.org/wc/meta-user.html |
1393 | 1449 | // Only show if it's different from the default robots policy |
1394 | 1450 | $this->addMeta( 'robots', $p ); |
Index: trunk/phase3/includes/DifferenceEngine.php |
— | — | @@ -142,7 +142,7 @@ |
143 | 143 | $wgOut->setPageTitle( $oldTitle . ', ' . $newTitle ); |
144 | 144 | } |
145 | 145 | $wgOut->setSubtitle( wfMsg( 'difference' ) ); |
146 | | - $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
| 146 | + $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
147 | 147 | |
148 | 148 | if ( !( $this->mOldPage->userCanRead() && $this->mNewPage->userCanRead() ) ) { |
149 | 149 | $wgOut->loginToUse(); |
— | — | @@ -363,7 +363,7 @@ |
364 | 364 | $wgOut->addHTML( $header ); |
365 | 365 | |
366 | 366 | $wgOut->setSubtitle( wfMsg( 'difference' ) ); |
367 | | - $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
| 367 | + $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
368 | 368 | |
369 | 369 | wfProfileOut( __METHOD__ ); |
370 | 370 | } |
Index: trunk/phase3/includes/specials/SpecialSpecialpages.php |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | |
14 | 14 | $wgMessageCache->loadAllMessages(); |
15 | 15 | |
16 | | - $wgOut->setRobotpolicy( 'noindex,nofollow' ); # Is this really needed? |
| 16 | + $wgOut->setRobotPolicy( 'noindex,nofollow' ); # Is this really needed? |
17 | 17 | $sk = $wgUser->getSkin(); |
18 | 18 | |
19 | 19 | $pages = SpecialPage::getUsablePages(); |
Index: trunk/phase3/includes/specials/SpecialPreferences.php |
— | — | @@ -522,7 +522,7 @@ |
523 | 523 | |
524 | 524 | $wgOut->setPageTitle( wfMsg( 'preferences' ) ); |
525 | 525 | $wgOut->setArticleRelated( false ); |
526 | | - $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
| 526 | + $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
527 | 527 | $wgOut->addScriptFile( 'prefs.js' ); |
528 | 528 | |
529 | 529 | $wgOut->disallowUserJs(); # Prevent hijacked user scripts from sniffing passwords etc. |
Index: trunk/phase3/includes/specials/SpecialUserlogin.php |
— | — | @@ -130,7 +130,7 @@ |
131 | 131 | wfRunHooks( 'AddNewAccount', array( $u, true ) ); |
132 | 132 | |
133 | 133 | $wgOut->setPageTitle( wfMsg( 'accmailtitle' ) ); |
134 | | - $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
| 134 | + $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
135 | 135 | $wgOut->setArticleRelated( false ); |
136 | 136 | |
137 | 137 | if( WikiError::isError( $result ) ) { |
— | — | @@ -655,7 +655,7 @@ |
656 | 656 | wfRunHooks('UserLoginComplete', array(&$wgUser, &$injected_html)); |
657 | 657 | |
658 | 658 | $wgOut->setPageTitle( wfMsg( 'loginsuccesstitle' ) ); |
659 | | - $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
| 659 | + $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
660 | 660 | $wgOut->setArticleRelated( false ); |
661 | 661 | $wgOut->addWikiMsgArray( $msg, $params ); |
662 | 662 | $wgOut->addHtml( $injected_html ); |
— | — | @@ -671,7 +671,7 @@ |
672 | 672 | global $wgOut; |
673 | 673 | |
674 | 674 | $wgOut->setPageTitle( wfMsg( 'permissionserrors' ) ); |
675 | | - $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
| 675 | + $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
676 | 676 | $wgOut->setArticleRelated( false ); |
677 | 677 | |
678 | 678 | $wgOut->addWikitext( $wgOut->formatPermissionsErrorMessage( $errors, 'createaccount' ) ); |
— | — | @@ -694,7 +694,7 @@ |
695 | 695 | # out. |
696 | 696 | |
697 | 697 | $wgOut->setPageTitle( wfMsg( 'cantcreateaccounttitle' ) ); |
698 | | - $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
| 698 | + $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
699 | 699 | $wgOut->setArticleRelated( false ); |
700 | 700 | |
701 | 701 | $ip = wfGetIP(); |
— | — | @@ -810,7 +810,7 @@ |
811 | 811 | } |
812 | 812 | |
813 | 813 | $wgOut->setPageTitle( wfMsg( 'userlogin' ) ); |
814 | | - $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
| 814 | + $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
815 | 815 | $wgOut->setArticleRelated( false ); |
816 | 816 | $wgOut->disallowUserJs(); // just in case... |
817 | 817 | $wgOut->addTemplate( $template ); |
Index: trunk/phase3/includes/specials/SpecialUserlogout.php |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | |
14 | 14 | $oldName = $wgUser->getName(); |
15 | 15 | $wgUser->logout(); |
16 | | - $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
| 16 | + $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
17 | 17 | |
18 | 18 | // Hook. |
19 | 19 | $injected_html = ''; |
Index: trunk/phase3/includes/specials/SpecialUpload.php |
— | — | @@ -1699,7 +1699,7 @@ |
1700 | 1700 | function showError( $description ) { |
1701 | 1701 | global $wgOut; |
1702 | 1702 | $wgOut->setPageTitle( wfMsg( "internalerror" ) ); |
1703 | | - $wgOut->setRobotpolicy( "noindex,nofollow" ); |
| 1703 | + $wgOut->setRobotPolicy( "noindex,nofollow" ); |
1704 | 1704 | $wgOut->setArticleRelated( false ); |
1705 | 1705 | $wgOut->enableClientCache( false ); |
1706 | 1706 | $wgOut->addWikiText( $description ); |
Index: trunk/phase3/includes/specials/SpecialSearch.php |
— | — | @@ -282,7 +282,7 @@ |
283 | 283 | $subtitlemsg = ( Title::newFromText( $term ) ? 'searchsubtitle' : 'searchsubtitleinvalid' ); |
284 | 284 | $wgOut->setSubtitle( $wgOut->parse( wfMsg( $subtitlemsg, wfEscapeWikiText($term) ) ) ); |
285 | 285 | $wgOut->setArticleRelated( false ); |
286 | | - $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
| 286 | + $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
287 | 287 | } |
288 | 288 | |
289 | 289 | /** |
Index: trunk/phase3/includes/Credits.php |
— | — | @@ -34,7 +34,7 @@ |
35 | 35 | $wgOut->setSubtitle( wfMsg( 'creditspage' ) ); |
36 | 36 | $wgOut->setArticleFlag( false ); |
37 | 37 | $wgOut->setArticleRelated( true ); |
38 | | - $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
| 38 | + $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
39 | 39 | |
40 | 40 | if( $article->mTitle->getArticleID() == 0 ) { |
41 | 41 | $s = wfMsg( 'nocredits' ); |
Index: trunk/phase3/includes/PageHistory.php |
— | — | @@ -87,7 +87,7 @@ |
88 | 88 | $wgOut->setPageTitleActionText( wfMsg( 'history_short' ) ); |
89 | 89 | $wgOut->setArticleFlag( false ); |
90 | 90 | $wgOut->setArticleRelated( true ); |
91 | | - $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
| 91 | + $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
92 | 92 | $wgOut->setSyndicated( true ); |
93 | 93 | $wgOut->setFeedAppendQuery( 'action=history' ); |
94 | 94 | $wgOut->addScriptFile( 'history.js' ); |
Index: trunk/phase3/includes/SpecialPage.php |
— | — | @@ -484,7 +484,7 @@ |
485 | 485 | if ( !$page ) { |
486 | 486 | if ( !$including ) { |
487 | 487 | $wgOut->setArticleRelated( false ); |
488 | | - $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
| 488 | + $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
489 | 489 | $wgOut->setStatusCode( 404 ); |
490 | 490 | $wgOut->showErrorPage( 'nosuchspecialpage', 'nospecialpagetext' ); |
491 | 491 | } |
Index: trunk/phase3/includes/Exception.php |
— | — | @@ -137,7 +137,7 @@ |
138 | 138 | global $wgOut; |
139 | 139 | if ( $this->useOutputPage() ) { |
140 | 140 | $wgOut->setPageTitle( $this->getPageTitle() ); |
141 | | - $wgOut->setRobotpolicy( "noindex,nofollow" ); |
| 141 | + $wgOut->setRobotPolicy( "noindex,nofollow" ); |
142 | 142 | $wgOut->setArticleRelated( false ); |
143 | 143 | $wgOut->enableClientCache( false ); |
144 | 144 | $wgOut->redirect( '' ); |