Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -40,19 +40,26 @@ |
41 | 41 | $wgExtensionMessagesFiles['MobileFrontend'] = $cwd . 'MobileFrontend.i18n.php'; |
42 | 42 | |
43 | 43 | // autoload extension classes |
44 | | -$wgAutoloadClasses['DeviceDetection'] = $cwd . 'DeviceDetection.php'; |
45 | | -$wgAutoloadClasses['CssDetection'] = $cwd . 'CssDetection.php'; |
46 | | -$wgAutoloadClasses['MobileFrontendTemplate'] = $cwd . 'MobileFrontendTemplate.php'; |
47 | | -$wgAutoloadClasses['ApplicationTemplate'] = $cwd . 'ApplicationTemplate.php'; |
48 | | -$wgAutoloadClasses['SearchTemplate'] = $cwd . 'SearchTemplate.php'; |
49 | | -$wgAutoloadClasses['FooterTemplate'] = $cwd . 'FooterTemplate.php'; |
50 | | -$wgAutoloadClasses['LeaveFeedbackTemplate'] = $cwd . 'LeaveFeedbackTemplate.php'; |
51 | | -$wgAutoloadClasses['DisableTemplate'] = $cwd . 'DisableTemplate.php'; |
52 | | -$wgAutoloadClasses['OptInTemplate'] = $cwd . 'OptInTemplate.php'; |
53 | | -$wgAutoloadClasses['OptOutTemplate'] = $cwd . 'OptOutTemplate.php'; |
54 | | -$wgAutoloadClasses['ApplicationWmlTemplate'] = $cwd . 'ApplicationWmlTemplate.php'; |
55 | | -$wgAutoloadClasses['ThanksNoticeTemplate'] = $cwd . 'ThanksNoticeTemplate.php'; |
56 | 44 | |
| 45 | +$autoloadClasses = array( |
| 46 | + 'DeviceDetection', |
| 47 | + 'CssDetection', |
| 48 | + 'MobileFrontendTemplate', |
| 49 | + 'ApplicationTemplate', |
| 50 | + 'SearchTemplate', |
| 51 | + 'FooterTemplate', |
| 52 | + 'LeaveFeedbackTemplate', |
| 53 | + 'DisableTemplate', |
| 54 | + 'OptInTemplate', |
| 55 | + 'OptOutTemplate', |
| 56 | + 'ApplicationWmlTemplate', |
| 57 | + 'ThanksNoticeTemplate', |
| 58 | + ); |
| 59 | + |
| 60 | +foreach ( $autoloadClasses as $class ) { |
| 61 | + $wgAutoloadClasses[$class] = $cwd . $class . '.php'; |
| 62 | +} |
| 63 | + |
57 | 64 | /** |
58 | 65 | * Path to the logo used in the mobile view |
59 | 66 | * |
— | — | @@ -99,7 +106,7 @@ |
100 | 107 | } |
101 | 108 | |
102 | 109 | class ExtMobileFrontend { |
103 | | - const VERSION = '0.5.96'; |
| 110 | + const VERSION = '0.5.97'; |
104 | 111 | |
105 | 112 | /** |
106 | 113 | * @var DOMDocument |