From b75a2171f1fd6a0f7104abdcf5f6246642164a34 Mon Sep 17 00:00:00 2001 From: Brian Wolff Date: Mon, 23 May 2011 17:05:39 +0000 Subject: [PATCH] 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 --- Math.hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Math.hooks.php b/Math.hooks.php index 1544de8..36d7452 100644 --- a/Math.hooks.php +++ b/Math.hooks.php @@ -133,7 +133,7 @@ class MathHooks { * @param array $tables * @return bool */ - function onParserTestTables( &$tables ) { + static function onParserTestTables( &$tables ) { $tables[] = 'math'; return true; }