Index: trunk/phase3/includes/Article.php |
— | — | @@ -780,6 +780,16 @@ |
781 | 781 | wfProfileOut( __METHOD__ ); |
782 | 782 | return; |
783 | 783 | } |
| 784 | + |
| 785 | + if( $ns == NS_USER || $ns == NS_USER_TALK ) { |
| 786 | + # User/User_talk subpages are not modified. (bug 11443) |
| 787 | + if( !$this->mTitle->isSubpage() ) { |
| 788 | + $block = new Block(); |
| 789 | + if( $block->load( $this->mTitle->getBaseText() ) ) { |
| 790 | + $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
| 791 | + } |
| 792 | + } |
| 793 | + } |
784 | 794 | |
785 | 795 | # Should the parser cache be used? |
786 | 796 | $pcache = $this->useParserCache( $oldid ); |
— | — | @@ -853,14 +863,6 @@ |
854 | 864 | // for better machine handling of broken links. |
855 | 865 | $return404 = true; |
856 | 866 | } |
857 | | - } else if( $ns == NS_USER || $ns == NS_USER_TALK ) { |
858 | | - # User/User_talk subpages are not modified. (bug 11443) |
859 | | - if( !$this->mTitle->isSubpage() ) { |
860 | | - $block = new Block(); |
861 | | - if( $block->load( $this->mTitle->getBaseText() ) ) { |
862 | | - $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
863 | | - } |
864 | | - } |
865 | 867 | } |
866 | 868 | |
867 | 869 | if( $return404 ) { |