Index: trunk/extensions/Math/Math.hooks.php |
— | — | @@ -25,7 +25,7 @@ |
26 | 26 | /** |
27 | 27 | * Register the <math> tag with the Parser. |
28 | 28 | * |
29 | | - * @param $parser Object: instance of Parser |
| 29 | + * @param $parser Parser instance of Parser |
30 | 30 | * @return Boolean: true |
31 | 31 | */ |
32 | 32 | static function onParserFirstCallInit( $parser ) { |
— | — | @@ -57,7 +57,6 @@ |
58 | 58 | * @return Boolean: true |
59 | 59 | */ |
60 | 60 | static function onGetPreferences( $user, &$defaultPreferences ) { |
61 | | - global $wgLang; |
62 | 61 | $defaultPreferences['math'] = array( |
63 | 62 | 'type' => 'radio', |
64 | 63 | 'options' => array_flip( array_map( 'wfMsgHtml', self::getMathNames() ) ), |
— | — | @@ -101,7 +100,7 @@ |
102 | 101 | /** |
103 | 102 | * LoadExtensionSchemaUpdates handler; set up math table on install/upgrade. |
104 | 103 | * |
105 | | - * @param $updater DatabaseUpdater |
| 104 | + * @param $updater DatabaseUpdater |
106 | 105 | * @return bool |
107 | 106 | */ |
108 | 107 | static function onLoadExtensionSchemaUpdates( $updater = null ) { |
— | — | @@ -116,7 +115,6 @@ |
117 | 116 | 'mssql' => 'math.mssql.sql', |
118 | 117 | 'db2' => 'math.db2.sql', |
119 | 118 | ); |
120 | | - $base = dirname( __FILE__ ); |
121 | 119 | $type = $updater->getDB()->getType(); |
122 | 120 | if ( isset( $map[$type] ) ) { |
123 | 121 | $sql = dirname( __FILE__ ) . '/db/' . $map[$type]; |