dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Improve "selfmove" message's wording"
[lhc/web/wiklou.git]
/
includes
/
actions
/
EditAction.php
diff --git
a/includes/actions/EditAction.php
b/includes/actions/EditAction.php
index
643d1c4
..
f0bc8bf
100644
(file)
--- a/
includes/actions/EditAction.php
+++ b/
includes/actions/EditAction.php
@@
-43,18
+43,20
@@
class EditAction extends FormlessAction {
public function show() {
$this->useTransactionalTimeLimit();
public function show() {
$this->useTransactionalTimeLimit();
+ $out = $this->getOutput();
+ $out->setRobotPolicy( 'noindex,nofollow' );
if ( $this->getContext()->getConfig()->get( 'UseMediaWikiUIEverywhere' ) ) {
if ( $this->getContext()->getConfig()->get( 'UseMediaWikiUIEverywhere' ) ) {
- $out = $this->getOutput();
- $out->addModuleStyles( array(
+ $out->addModuleStyles( [
'mediawiki.ui.input',
'mediawiki.ui.checkbox',
'mediawiki.ui.input',
'mediawiki.ui.checkbox',
-
)
);
+
]
);
}
$page = $this->page;
$user = $this->getUser();
}
$page = $this->page;
$user = $this->getUser();
- if ( Hooks::run( 'CustomEditor',
array( $page, $user )
) ) {
+ if ( Hooks::run( 'CustomEditor',
[ $page, $user ]
) ) {
$editor = new EditPage( $page );
$editor = new EditPage( $page );
+ $editor->setContextTitle( $this->getTitle() );
$editor->edit();
}
}
$editor->edit();
}
}