r108848 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108847‎ | r108848 | r108849 >
Date:21:15, 13 January 2012
Author:siebrand
Status:ok
Tags:
Comment:
Revert r108822 and r108823. This fixed an API error message, but caused an issue in the regular UI.
Modified paths:
  • /trunk/extensions/Translate/tag/PageTranslationHooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/tag/PageTranslationHooks.php
@@ -321,7 +321,7 @@
322322 public static function preventUnknownTranslations( Title $title, User $user, $action, &$result ) {
323323 $handle = new MessageHandle( $title );
324324 if ( $handle->isPageTranslation() && $action === 'edit' && !$handle->isValid() ) {
325 - $result = array( wfMsg( 'tpt-unknown-page' ) );
 325+ $result = array( 'tpt-unknown-page' );
326326 return false;
327327 }
328328

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r108822Return message instead of key.siebrand18:28, 13 January 2012
r108823Fix typo in r108822.siebrand18:31, 13 January 2012

Status & tagging log