Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -1151,14 +1151,11 @@ |
1152 | 1152 | if ( $this->mTitle->isCascadeProtected() ) { |
1153 | 1153 | # Is this page under cascading protection from some source pages? |
1154 | 1154 | list($cascadeSources, /* $restrictions */) = $this->mTitle->getCascadeProtectionSources(); |
1155 | | - $notice = "$1\n"; |
1156 | | - if ( count($cascadeSources) > 0 ) { |
1157 | | - # Explain, and list the titles responsible |
1158 | | - foreach( $cascadeSources as $page ) { |
1159 | | - $notice .= '* [[:' . $page->getPrefixedText() . "]]\n"; |
1160 | | - } |
| 1155 | + $notice = ""; |
| 1156 | + foreach( $cascadeSources as $page ) { |
| 1157 | + $notice .= '* [[:' . $page->getPrefixedText() . "]]\n"; |
1161 | 1158 | } |
1162 | | - $wgOut->wrapWikiMsg( $notice, array( 'cascadeprotectedwarning', count($cascadeSources) ) ); |
| 1159 | + $wgOut->addWikiMsg( 'cascadeprotectedwarning', count($cascadeSources), $notice ); |
1163 | 1160 | } |
1164 | 1161 | if( !$this->mTitle->exists() && $this->mTitle->getRestrictions( 'create' ) != array() ){ |
1165 | 1162 | $wgOut->addWikiMsg( 'titleprotectedwarning' ); |