mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-28 01:10:09 +00:00
Make the onParserTestTables method static, since the hook is called statically.
Fixes: Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method MathHooks::onParserTestTables() should not be called statically in /var/www/w/phase3/includes/Hooks.php on line 235
This commit is contained in:
parent
7346759250
commit
b75a2171f1
|
@ -133,7 +133,7 @@ class MathHooks {
|
|||
* @param array $tables
|
||||
* @return bool
|
||||
*/
|
||||
function onParserTestTables( &$tables ) {
|
||||
static function onParserTestTables( &$tables ) {
|
||||
$tables[] = 'math';
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue