Page MenuHomePhabricator

11443.patch

Authored By
bzimport
Nov 21 2014, 9:59 PM
Size
742 B
Referenced Files
None
Subscribers
None

11443.patch

Index: Article.php
===================================================================
--- Article.php (revision 28987)
+++ Article.php (working copy)
@@ -167,6 +167,15 @@
return "<div class='noarticletext'>$ret</div>";
} else {
+ if( $this->mTitle->getNamespace() == NS_USER || $this->mTitle->getNamespace() == NS_USER_TALK ) {
+ if( $this->mTitle->getBaseText() == $this->mTitle->getSubpageText() ) {
+ /* User/User_talk subpages are not modified. (bug 11443) */
+ $block = new Block();
+ if( $block->load( $user = $this->mTitle->getBaseText() ) ){
+ $wgOut->setRobotpolicy( 'noindex,nofollow' );
+ }
+ }
+ }
$this->loadContent();
wfProfileOut( __METHOD__ );
return $this->mContent;

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4098
Default Alt Text
11443.patch (742 B)

Event Timeline