r106131 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106130‎ | r106131 | r106132 >
Date:23:31, 13 December 2011
Author:preilly
Status:ok
Tags:
Comment:
modify wgAutoloadClasses array creation
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/MobileFrontend.php
@@ -40,19 +40,26 @@
4141 $wgExtensionMessagesFiles['MobileFrontend'] = $cwd . 'MobileFrontend.i18n.php';
4242
4343 // 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';
5644
 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+
5764 /**
5865 * Path to the logo used in the mobile view
5966 *
@@ -99,7 +106,7 @@
100107 }
101108
102109 class ExtMobileFrontend {
103 - const VERSION = '0.5.96';
 110+ const VERSION = '0.5.97';
104111
105112 /**
106113 * @var DOMDocument

Follow-up revisions

RevisionCommit summaryAuthorDate
r106438Fix bizzare indentation from r106131demon15:17, 16 December 2011

Status & tagging log