Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F4533
11443.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 9:59 PM
2014-11-21 21:59:58 (UTC+0)
Size
742 B
Referenced Files
None
Subscribers
None
11443.patch
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4098
Default Alt Text
11443.patch (742 B)
Attached To
Mode
T13443: Auto-noindex user/user talk pages for blocked users.
Attached
Detach File
Event Timeline
Log In to Comment