job-queue insert should no longer fail for highly used templates (bug 5527)
[lhc/web/wiklou.git] / 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 ) {