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:
6da2a43
)
Merge "EditPage: Fix duplicate classic toolbar"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Thu, 24 May 2018 23:08:23 +0000
(23:08 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Thu, 24 May 2018 23:08:23 +0000
(23:08 +0000)
includes/EditPage.php
patch
|
blob
|
history
diff --git
a/includes/EditPage.php
b/includes/EditPage.php
index
67ce1f3
..
87fb711
100644
(file)
--- a/
includes/EditPage.php
+++ b/
includes/EditPage.php
@@
-4111,14
+4111,12
@@
ERROR;
$script .= '});';
- $nonce = $wgOut->getCSPNonce();
- $wgOut->addScript( ResourceLoader::makeInlineScript( $script, $nonce ) );
-
$toolbar = '<div id="toolbar"></div>';
if ( Hooks::run( 'EditPageBeforeEditToolbar', [ &$toolbar ] ) ) {
// Only add the old toolbar cruft to the page payload if the toolbar has not
// been over-written by a hook caller
+ $nonce = $wgOut->getCSPNonce();
$wgOut->addScript( ResourceLoader::makeInlineScript( $script, $nonce ) );
};