From 8ac66063c590f63e8034c4dc5da629a3f7f2d88b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Sun, 28 Sep 2008 08:22:55 +0000 Subject: [PATCH] +* (bug 15158) Userinvalidcssjstitle not shown on preview --- RELEASE-NOTES | 1 + includes/EditPage.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 9fd8564c7f..495425dd23 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -229,6 +229,7 @@ The following extensions are migrated into MediaWiki 1.14: * Fixed incorrect usage of DB_LAST in Special:Export. Deprecated DB_LAST. * (bug 15642) Blocked sysops can no longer block other users * Http::request() now respects $wgHTTPtimeout when not using cURL +* (bug 15158) Userinvalidcssjstitle not shown on preview === API changes in 1.14 === diff --git a/includes/EditPage.php b/includes/EditPage.php index 13c9a29230..40cf39a1cc 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1175,7 +1175,7 @@ class EditPage { } elseif ( $wgUser->isAnon() && $this->formtype != 'preview' ) { $wgOut->wrapWikiMsg( '
$1
', 'anoneditwarning' ); } else { - if ( $this->isCssJsSubpage && $this->formtype != 'preview' ) { + if ( $this->isCssJsSubpage ) { # Check the skin exists if ( $this->isValidCssJsSubpage ) { $wgOut->addWikiMsg( 'usercssjsyoucanpreview' ); -- 2.20.1