"Bsitu" posted a comment on MediaWiki.r109529.
URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/109529#c29785

Commit summary for MediaWiki.r109529:

Remove use of deprecated LanguageGetMagic hook.
Remove a few globals or constants that were used for magic words.
Trim trailing whitespace and update indentation in a few place.

Bsitu's comment:

<code>
 $wgExtensionMessagesFiles['StockCharts'] =  dirname( __FILE__ ) . 
'/StockCharts.i18n.php';
 $wgExtensionMessagesFiles['StockChartsMagic'] =  dirname( __FILE__ ) . 
'/StockCharts.i18n.magic.php';
 
 $wgAutoloadClasses['StockCharts'] = dirname( __FILE__ ) . 
'/StockCharts_body.php';
</code>
dirname( __FILE__ ) should be assigned to variable and use the variable instead 
of multiple call to this function

_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to