http://www.mediawiki.org/wiki/Special:Code/MediaWiki/95756
Revision: 95756
Author: catrope
Date: 2011-08-30 11:39:43 +0000 (Tue, 30 Aug 2011)
Log Message:
-----------
Fix a message key typo in r41961 (!!), which didn't matter before because the
relevant code (and the message) wasn't reachable.
Modified Paths:
--------------
trunk/phase3/includes/Title.php
trunk/phase3/tests/phpunit/includes/TitlePermissionTest.php
Modified: trunk/phase3/includes/Title.php
===================================================================
--- trunk/phase3/includes/Title.php 2011-08-30 11:37:07 UTC (rev 95755)
+++ trunk/phase3/includes/Title.php 2011-08-30 11:39:43 UTC (rev 95756)
@@ -1555,7 +1555,7 @@
$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 ) ) {
Modified: trunk/phase3/tests/phpunit/includes/TitlePermissionTest.php
===================================================================
--- trunk/phase3/tests/phpunit/includes/TitlePermissionTest.php 2011-08-30
11:37:07 UTC (rev 95755)
+++ trunk/phase3/tests/phpunit/includes/TitlePermissionTest.php 2011-08-30
11:39:43 UTC (rev 95756)
@@ -580,7 +580,7 @@
$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' ) );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs