r55276 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r55275‎ | r55276 | r55277 >
Date:21:42, 18 August 2009
Author:catrope
Status:deferred
Tags:
Comment:
Fix fatals in r55275
Modified paths:
  • /trunk/extensions/LocalisationUpdate/LocalisationUpdate.class.php (modified) (history)
  • /trunk/extensions/LocalisationUpdate/LocalisationUpdate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LocalisationUpdate/LocalisationUpdate.php
@@ -33,7 +33,7 @@
3434 );
3535
3636 // Use the right hook
37 -$wgHooks['MessageNotInMwNs'][] = 'LocalisationUpdate::FindUpdatedMessages'; // MW <= 1.15
 37+$wgHooks['MessageNotInMwNs'][] = 'LocalisationUpdate::FindUpdatedMessage'; // MW <= 1.15
3838 $wgHooks['LocalisationCacheRecache'][] = 'LocalisationUpdate::onRecache'; // MW 1.16+
3939
4040 $dir = dirname( __FILE__ ) . '/';
Index: trunk/extensions/LocalisationUpdate/LocalisationUpdate.class.php
@@ -15,6 +15,8 @@
1616 // If message is in the cache, don't get an update!
1717 if ( array_key_exists( $lckey . "/" . $langcode, $cache ) ) {
1818 $message = $cache[$lckey . "/" . $langcode];
 19+ return true;
 20+ }
1921
2022 // Get the message from the database
2123 $conds = array( 'lo_key' => $lckey, 'lo_language' => $langcode );

Follow-up revisions

RevisionCommit summaryAuthorDate
r55283wmf-deployment: Merge r55275 and r55276: fixes for LocalisationUpdatecatrope22:22, 18 August 2009
r55286wmf-deployment: Merge r55276 which I forgot in r55283catrope22:53, 18 August 2009

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r55275LocalisationUpdate: Make LU compatible with 1.15 and below by re-adding the M...catrope21:33, 18 August 2009

Status & tagging log