r97246 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97245‎ | r97246 | r97247 >
Date:07:43, 16 September 2011
Author:nikerabbit
Status:deferred
Tags:
Comment:
Pass the correct variable (revision number instead of rev object/null) to the hook
Modified paths:
  • /trunk/extensions/Translate/TranslateEditAddons.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/TranslateEditAddons.php
@@ -339,7 +339,7 @@
340340 MessageGroupStats::clear( $handle );
341341
342342 if ( $fuzzy === false ) {
343 - wfRunHooks( 'Translate:newTranslation', array( $handle, $revision, $text, $user ) );
 343+ wfRunHooks( 'Translate:newTranslation', array( $handle, $rev, $text, $user ) );
344344 }
345345
346346 return true;

Status & tagging log