Issue:LanguageGetMagic is deprecated

From FollowTheScore
Revision as of 15:09, 13 June 2013 by Maiden taiwan (talk | contribs) (Created page with "{{Issue |Type = Bug |Extension = DPL |Version = 2.0.1 |Description = LanguageGetMagic is deprecated |Status = open }} == Problem == The hook <code>Lan...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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.

Reply