Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -1221,8 +1221,8 @@ |
1222 | 1222 | } |
1223 | 1223 | $wgOut->wrapWikiMsg( $notice, array( 'cascadeprotectedwarning', count($cascadeSources) ) ); |
1224 | 1224 | } |
1225 | | - if( !$this->mTitle->exists() && $this->mTitle->getRestrictions( 'create' ) != array() ){ |
1226 | | - $wgOut->addWikiMsg( 'titleprotectedwarning' ); |
| 1225 | + if( !$this->mTitle->exists() && ( $createRestrictions = $this->mTitle->getRestrictions( 'create' ) ) != array() ){ |
| 1226 | + $wgOut->addWikiMsgArray( 'titleprotectedwarning', $createRestrictions ); |
1227 | 1227 | } |
1228 | 1228 | |
1229 | 1229 | if( $this->kblength === false ) { |