Fix a message key typo in r41961 (!!), which didn't matter before because the relevan...
authorRoan Kattouw <catrope@users.mediawiki.org>
Tue, 30 Aug 2011 11:39:43 +0000 (11:39 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Tue, 30 Aug 2011 11:39:43 +0000 (11:39 +0000)
includes/Title.php
tests/phpunit/includes/TitlePermissionTest.php

index 81715ca..41b8e54 100644 (file)
@@ -1555,7 +1555,7 @@ class Title {
                                $errors[] = array( 'immobile-source-namespace', $this->getNsText() );
                        } elseif ( !$this->isMovable() ) {
                                // Less specific message for rarer cases
-                               $errors[] = array( 'immobile-page' );
+                               $errors[] = array( 'immobile-source-page' );
                        }
                } elseif ( $action == 'move-target' ) {
                        if ( !MWNamespace::isMovable( $this->mNamespace ) ) {
index e9e83dd..7016164 100644 (file)
@@ -580,7 +580,7 @@ class TitlePermissionTest extends MediaWikiLangTestCase {
                                                         $this->title->userCan( 'move' ) );
 
                $this->title->mInterwiki = "no";
-               $this->assertEquals( array( array( 'immobile-page' ) ),
+               $this->assertEquals( array( array( 'immobile-source-page' ) ),
                                                         $this->title->getUserPermissionsErrors( 'move', $this->user ) );
                $this->assertEquals( false,
                                                         $this->title->userCan( 'move' ) );