Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -2443,7 +2443,7 @@ |
2444 | 2444 | $action = $wgRequest->getVal( 'action', 'view' ); |
2445 | 2445 | if( $this->mTitle && $this->mTitle->isJsSubpage() && $sk->userCanPreview( $action ) ) { |
2446 | 2446 | # XXX: additional security check/prompt? |
2447 | | - $this->addInlineScript( $wgRequest->getText( 'wpTextbox1' ) ); |
| 2447 | + $scripts .= Html::inlineScript( "\n" . $wgRequest->getText( 'wpTextbox1' ) . "\n" ) . "\n"; |
2448 | 2448 | } else { |
2449 | 2449 | $scripts .= $this->makeResourceLoaderLink( |
2450 | 2450 | $sk, array( 'user', 'user.options' ), 'scripts' |