http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88651
Revision: 88651
Author: bawolff
Date: 2011-05-23 17:05:39 +0000 (Mon, 23 May 2011)
Log Message:
-----------
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
Modified Paths:
--------------
trunk/extensions/Math/Math.hooks.php
Modified: trunk/extensions/Math/Math.hooks.php
===================================================================
--- trunk/extensions/Math/Math.hooks.php 2011-05-23 17:04:54 UTC (rev
88650)
+++ trunk/extensions/Math/Math.hooks.php 2011-05-23 17:05:39 UTC (rev
88651)
@@ -133,7 +133,7 @@
* @param array $tables
* @return bool
*/
- function onParserTestTables( &$tables ) {
+ static function onParserTestTables( &$tables ) {
$tables[] = 'math';
return true;
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs