Difference between revisions of "Issue:LanguageGetMagic is deprecated"

From FollowTheScore
Jump to: navigation, search
(Created page with "{{Issue |Type = Bug |Extension = DPL |Version = 2.0.1 |Description = LanguageGetMagic is deprecated |Status = open }} == Problem == The hook <code>Lan...")
 
m
 
Line 24: Line 24:
 
</pre>
 
</pre>
  
Then delete all <code>$wgHooks['LanguageGetMagic'</code> lines and their related callbacks.
+
Then delete all <code>$wgHooks['LanguageGetMagic']</code> lines and their related callbacks.
  
 
== Reply ==
 
== Reply ==

Latest 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.

Reply