dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
3cae78f
)
Merge "(bug 37755) Set robot meta tags for 'view source' pages"
author
IAlex
<ialex.wiki@gmail.com>
Sun, 2 Dec 2012 09:02:12 +0000
(09:02 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Sun, 2 Dec 2012 09:02:12 +0000
(09:02 +0000)
includes/EditPage.php
patch
|
blob
|
history
diff --git
a/includes/EditPage.php
b/includes/EditPage.php
index
f80da0f
..
292d2b7
100644
(file)
--- a/
includes/EditPage.php
+++ b/
includes/EditPage.php
@@
-480,6
+480,7
@@
class EditPage {
throw new PermissionsError( $action, $permErrors );
}
+ $wgOut->setRobotPolicy( 'noindex,nofollow' );
$wgOut->setPageTitle( wfMessage( 'viewsource-title', $this->getContextTitle()->getPrefixedText() ) );
$wgOut->addBacklinkSubtitle( $this->getContextTitle() );
$wgOut->addWikiText( $wgOut->formatPermissionsErrorMessage( $permErrors, 'edit' ) );