Difference between revisions of "Issue:LanguageGetMagic is deprecated"
From FollowTheScore
(Created page with "{{Issue |Type = Bug |Extension = DPL |Version = 2.0.1 |Description = LanguageGetMagic is deprecated |Status = open }} == Problem == The hook <code>Lan...") |
(No difference)
|
Revision as of 16:09, 13 June 2013
Description: | LanguageGetMagic is deprecated |
Extension / Version: | DPL / 2.0.1 |
Type / Status: | Bug / open |
Problem
The hook LanguageGetMagic
is deprecated in MediaWiki. DPL should use the new standard of writing magic words in the i18n file:
$magicWords = array(); $magicWords['en'] = array( 'dpl' => array( 0, 'dpl' ), 'dplnum' => array( 0, 'dplnum' ), 'dplvar' => array( 0, 'dplvar' ), 'dplreplace' => array( 0, 'dplreplace' ), 'dplchapter' => array( 0, 'dplchapter' ), 'dplmatrix' => array( 0, 'dplmatrix' ), 'DynamicPageList' => array( 0, 'DynamicPageList' ), );
Then delete all $wgHooks['LanguageGetMagic'
lines and their related callbacks.