Last modified: 2012-05-24 13:16:32 UTC
svn info http://svn.wikimedia.org/svnroot/mediawiki/tags/extensions/SemanticImageInput/REL_0_1 Revision: 115383 Hi, I installed SemanticImageInput as part of the google code project "semantic bundle". When I enabled SemanticImageInput, I received the following error. Parse error: syntax error, unexpected T_FUNCTION in extensions/SemanticImageInput/SemanticImageInput.php on line 58 To stop the error message, I modified $wgExtensionFunctions[] = function () { global $sfgFormPrinter; $sfgFormPrinter->registerInputType( 'InstantImageInput' ); }; to function registerInstantImageInput() { global $sfgFormPrinter; $sfgFormPrinter->registerInputType( 'InstantImageInput' ); } $wgExtensionFunctions[] = "registerInstantImageInput";
Thanks for sharing. This has been fixed in the latest code.