Index: trunk/extensions/LocalisationUpdate/LocalisationUpdate.php |
— | — | @@ -33,7 +33,7 @@ |
34 | 34 | ); |
35 | 35 | |
36 | 36 | // Use the right hook |
37 | | -$wgHooks['MessageNotInMwNs'][] = 'LocalisationUpdate::FindUpdatedMessages'; // MW <= 1.15 |
| 37 | +$wgHooks['MessageNotInMwNs'][] = 'LocalisationUpdate::FindUpdatedMessage'; // MW <= 1.15 |
38 | 38 | $wgHooks['LocalisationCacheRecache'][] = 'LocalisationUpdate::onRecache'; // MW 1.16+ |
39 | 39 | |
40 | 40 | $dir = dirname( __FILE__ ) . '/'; |
Index: trunk/extensions/LocalisationUpdate/LocalisationUpdate.class.php |
— | — | @@ -15,6 +15,8 @@ |
16 | 16 | // If message is in the cache, don't get an update! |
17 | 17 | if ( array_key_exists( $lckey . "/" . $langcode, $cache ) ) { |
18 | 18 | $message = $cache[$lckey . "/" . $langcode]; |
| 19 | + return true; |
| 20 | + } |
19 | 21 | |
20 | 22 | // Get the message from the database |
21 | 23 | $conds = array( 'lo_key' => $lckey, 'lo_language' => $langcode ); |