Add the list of restrictions to the "titleprotectedwarning" message. For now, there...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 9 Sep 2008 19:53:06 +0000 (19:53 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 9 Sep 2008 19:53:06 +0000 (19:53 +0000)
includes/EditPage.php

index 61cac92..794e500 100644 (file)
@@ -1221,8 +1221,8 @@ class EditPage {
                        }
                        $wgOut->wrapWikiMsg( $notice, array( 'cascadeprotectedwarning', count($cascadeSources) ) );
                }
-               if( !$this->mTitle->exists() && $this->mTitle->getRestrictions( 'create' ) != array() ){
-                       $wgOut->addWikiMsg( 'titleprotectedwarning' );
+               if( !$this->mTitle->exists() && ( $createRestrictions = $this->mTitle->getRestrictions( 'create' ) ) != array() ){
+                       $wgOut->addWikiMsgArray( 'titleprotectedwarning', $createRestrictions );
                }
 
                if( $this->kblength === false ) {