Index: trunk/extensions/StalePages/StalePages.php |
— | — | @@ -18,12 +18,12 @@ |
19 | 19 | ); |
20 | 20 | |
21 | 21 | if( version_compare( $wgVersion, '1.12alpha', '>=' ) ) { |
| 22 | + $dir = dirname(__FILE__) . '/'; |
22 | 23 | $wgExtensionMessagesFiles['Stalepages'] = $dir . 'StalePages.i18n.php'; |
23 | 24 | } else { |
24 | 25 | $wgExtensionFunctions[] = 'efStalepages'; |
25 | 26 | } |
26 | 27 | |
27 | | -$dir = dirname(__FILE__) . '/'; |
28 | 28 | $wgAutoloadClasses['Stalepages'] = $dir . 'StalePages_body.php'; |
29 | 29 | |
30 | 30 | $wgSpecialPages['Stalepages'] = 'Stalepages'; |