From: Raimond Spekking Date: Mon, 28 Jul 2008 15:41:17 +0000 (+0000) Subject: * Add a few CSS ids to allow customization of warning messages X-Git-Tag: 1.31.0-rc.0~46330 X-Git-Url: https://git.cyclocoop.org/%27%20.%20%24this-%3EgetSkin%28%29-%3EescapeSearchLink%28%29%20.%20%27?a=commitdiff_plain;h=c99cf5949cb79b5fe9c1bd231fc1668d459582a0;p=lhc%2Fweb%2Fwiklou.git * Add a few CSS ids to allow customization of warning messages * Apply formatNum to $wgMaxArticleSize too --- diff --git a/includes/EditPage.php b/includes/EditPage.php index dd3544cab7..585e156d64 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1144,7 +1144,9 @@ class EditPage { # Then it must be protected based on static groups (regular) $noticeMsg = 'protectedpagewarning'; } + $wgOut->addHTML( "
\n" ); $wgOut->addWikiMsg( $noticeMsg ); + $wgOut->addHTML( "
\n" ); } if ( $this->mTitle->isCascadeProtected() ) { # Is this page under cascading protection from some source pages? @@ -1166,9 +1168,13 @@ class EditPage { $this->kblength = (int)(strlen( $this->textbox1 ) / 1024); } if ( $this->tooBig || $this->kblength > $wgMaxArticleSize ) { - $wgOut->addWikiMsg( 'longpageerror', $wgLang->formatNum( $this->kblength ), $wgMaxArticleSize ); + $wgOut->addHTML( "
\n" ); + $wgOut->addWikiMsg( 'longpageerror', $wgLang->formatNum( $this->kblength ), $wgLang->formatNum( $wgMaxArticleSize ) ); + $wgOut->addHTML( "
\n" ); } elseif( $this->kblength > 29 ) { + $wgOut->addHTML( "
\n" ); $wgOut->addWikiMsg( 'longpagewarning', $wgLang->formatNum( $this->kblength ) ); + $wgOut->addHTML( "
\n" ); } #need to parse the preview early so that we know which templates are used,