r107524 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107523‎ | r107524 | r107525 >
Date:20:39, 28 December 2011
Author:reedy
Status:ok
Tags:
Comment:
Add Exceptions to autoloaded classes
Modified paths:
  • /trunk/extensions/MoodBar/MoodBar.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MoodBar/MoodBar.php
@@ -16,6 +16,7 @@
1717 // Object model
1818 $wgAutoloadClasses['MBFeedbackItem'] = dirname(__FILE__).'/FeedbackItem.php';
1919 $wgAutoloadClasses['MBFeedbackResponseItem'] = dirname(__FILE__).'/FeedbackResponseItem.php';
 20+$wgAutoloadClasses['MWFeedbackResponseItemPropertyException'] = dirname(__FILE__).'/FeedbackResponseItem.php';
2021 $wgAutoloadClasses['MoodBarFormatter'] = dirname(__FILE__).'/Formatter.php';
2122 $wgAutoloadClasses['MoodBarHTMLEmailNotification'] = dirname(__FILE__).'/include/MoodBarHTMLEmailNotification.php';
2223 $wgAutoloadClasses['MoodBarHTMLMailerJob'] = dirname( __FILE__ ) . '/include/MoodBarHTMLMailerJob.php';
@@ -30,6 +31,7 @@
3132 $wgAutoloadClasses['ApiFeedbackDashboardResponse'] = dirname(__FILE__).'/ApiFeedbackDashboardResponse.php';
3233 $wgAPIModules['feedbackdashboardresponse'] = 'ApiFeedbackDashboardResponse';
3334 $wgAutoloadClasses['ApiMoodBarSetUserEmail'] = dirname(__FILE__).'/ApiMoodBarSetUserEmail.php';
 35+$wgAutoloadClasses['MWApiMoodBarSetUserEmailInvalidActionException'] = dirname(__FILE__).'/ApiMoodBarSetUserEmail.php';
3436 $wgAPIModules['moodbarsetuseremail'] = 'ApiMoodBarSetUserEmail';
3537
3638 // Hooks
@@ -209,11 +211,11 @@
210212 'response-back-text',
211213 'response-preview-text',
212214 'response-preview-text',
213 - 'response-ajax-action-head',
 215+ 'response-ajax-action-head',
214216 'response-ajax-action-body',
215217 'response-ajax-success-head',
216218 'response-ajax-success-body',
217 - 'response-ajax-error-head',
 219+ 'response-ajax-error-head',
218220 'response-ajax-error-body',
219221 ),
220222 );
@@ -253,4 +255,5 @@
254256 'infoUrl' => 'http://www.mediawiki.org/wiki/MoodBar',
255257 'privacyUrl' => 'about:blank',
256258 'disableExpiration' => 365,
257 -);
\ No newline at end of file
 259+);
 260+

Status & tagging log