Improve documentation, remove unused global
This commit is contained in:
parent
98121de634
commit
0af538dbbe
|
@ -25,7 +25,7 @@ class MathHooks {
|
||||||
/**
|
/**
|
||||||
* Register the <math> tag with the Parser.
|
* Register the <math> tag with the Parser.
|
||||||
*
|
*
|
||||||
* @param $parser Object: instance of Parser
|
* @param $parser Parser instance of Parser
|
||||||
* @return Boolean: true
|
* @return Boolean: true
|
||||||
*/
|
*/
|
||||||
static function onParserFirstCallInit( $parser ) {
|
static function onParserFirstCallInit( $parser ) {
|
||||||
|
@ -57,7 +57,6 @@ class MathHooks {
|
||||||
* @return Boolean: true
|
* @return Boolean: true
|
||||||
*/
|
*/
|
||||||
static function onGetPreferences( $user, &$defaultPreferences ) {
|
static function onGetPreferences( $user, &$defaultPreferences ) {
|
||||||
global $wgLang;
|
|
||||||
$defaultPreferences['math'] = array(
|
$defaultPreferences['math'] = array(
|
||||||
'type' => 'radio',
|
'type' => 'radio',
|
||||||
'options' => array_flip( array_map( 'wfMsgHtml', self::getMathNames() ) ),
|
'options' => array_flip( array_map( 'wfMsgHtml', self::getMathNames() ) ),
|
||||||
|
@ -116,7 +115,6 @@ class MathHooks {
|
||||||
'mssql' => 'math.mssql.sql',
|
'mssql' => 'math.mssql.sql',
|
||||||
'db2' => 'math.db2.sql',
|
'db2' => 'math.db2.sql',
|
||||||
);
|
);
|
||||||
$base = dirname( __FILE__ );
|
|
||||||
$type = $updater->getDB()->getType();
|
$type = $updater->getDB()->getType();
|
||||||
if ( isset( $map[$type] ) ) {
|
if ( isset( $map[$type] ) ) {
|
||||||
$sql = dirname( __FILE__ ) . '/db/' . $map[$type];
|
$sql = dirname( __FILE__ ) . '/db/' . $map[$type];
|
||||||
|
|
Loading…
Reference in New Issue