Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -1144,7 +1144,9 @@ |
1145 | 1145 | # Then it must be protected based on static groups (regular) |
1146 | 1146 | $noticeMsg = 'protectedpagewarning'; |
1147 | 1147 | } |
| 1148 | + $wgOut->addHTML( "<div id='mw-edit-$noticeMsg'>\n" ); |
1148 | 1149 | $wgOut->addWikiMsg( $noticeMsg ); |
| 1150 | + $wgOut->addHTML( "</div>\n" ); |
1149 | 1151 | } |
1150 | 1152 | if ( $this->mTitle->isCascadeProtected() ) { |
1151 | 1153 | # Is this page under cascading protection from some source pages? |
— | — | @@ -1166,9 +1168,13 @@ |
1167 | 1169 | $this->kblength = (int)(strlen( $this->textbox1 ) / 1024); |
1168 | 1170 | } |
1169 | 1171 | if ( $this->tooBig || $this->kblength > $wgMaxArticleSize ) { |
1170 | | - $wgOut->addWikiMsg( 'longpageerror', $wgLang->formatNum( $this->kblength ), $wgMaxArticleSize ); |
| 1172 | + $wgOut->addHTML( "<div id='mw-edit-longpageerror'>\n" ); |
| 1173 | + $wgOut->addWikiMsg( 'longpageerror', $wgLang->formatNum( $this->kblength ), $wgLang->formatNum( $wgMaxArticleSize ) ); |
| 1174 | + $wgOut->addHTML( "</div>\n" ); |
1171 | 1175 | } elseif( $this->kblength > 29 ) { |
| 1176 | + $wgOut->addHTML( "<div id='mw-edit-longpagewarning'>\n" ); |
1172 | 1177 | $wgOut->addWikiMsg( 'longpagewarning', $wgLang->formatNum( $this->kblength ) ); |
| 1178 | + $wgOut->addHTML( "</div>\n" ); |
1173 | 1179 | } |
1174 | 1180 | |
1175 | 1181 | #need to parse the preview early so that we know which templates are used, |