dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef7ba21
)
(bug 11443) Auto-noindex user/user talk pages for blocked users
author
Aaron Schulz
<aaron@users.mediawiki.org>
Tue, 13 Jan 2009 18:37:46 +0000
(18:37 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Tue, 13 Jan 2009 18:37:46 +0000
(18:37 +0000)
includes/Article.php
patch
|
blob
|
history
diff --git
a/includes/Article.php
b/includes/Article.php
index
c4135c3
..
eedc331
100644
(file)
--- a/
includes/Article.php
+++ b/
includes/Article.php
@@
-853,7
+853,15
@@
class Article {
// for better machine handling of broken links.
$return404 = true;
}
- }
+ } else if( $ns == NS_USER || $ns == NS_USER_TALK ) {
+ # User/User_talk subpages are not modified. (bug 11443)
+ if( !$this->mTitle->isSubpage() ) {
+ $block = new Block();
+ if( $block->load( $this->mTitle->getBaseText() ) ) {
+ $wgOut->setRobotpolicy( 'noindex,nofollow' );
+ }
+ }
+ }
if( $return404 ) {
$wgRequest->response()->header( "HTTP/1.x 404 Not Found" );