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
|
* @param array $tables
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
function onParserTestTables( &$tables ) {
|
static function onParserTestTables( &$tables ) {
|
||||||
$tables[] = 'math';
|
$tables[] = 'math';
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user