From 9bb3cc97aa8b018b4e7c5d725547f10c26bb2961 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Wed, 8 Dec 2010 17:53:57 +0000 Subject: [PATCH] addInlineScript() won't work since the content of $mScripts is added to $scripts before that call --- includes/OutputPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 6f62b11b15..7df472d1ec 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -2443,7 +2443,7 @@ class OutputPage { $action = $wgRequest->getVal( 'action', 'view' ); if( $this->mTitle && $this->mTitle->isJsSubpage() && $sk->userCanPreview( $action ) ) { # XXX: additional security check/prompt? - $this->addInlineScript( $wgRequest->getText( 'wpTextbox1' ) ); + $scripts .= Html::inlineScript( "\n" . $wgRequest->getText( 'wpTextbox1' ) . "\n" ) . "\n"; } else { $scripts .= $this->makeResourceLoaderLink( $sk, array( 'user', 'user.options' ), 'scripts' -- 2.20.1