Last modified: 2012-05-24 13:16:32 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T39057, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37057 - Parse error: syntax error, unexpected T_FUNCTION in extensions/SemanticImageInput/SemanticImageInput.php on line 58
Parse error: syntax error, unexpected T_FUNCTION in extensions/SemanticImageI...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-23 15:29 UTC by Dave Anderson
Modified: 2012-05-24 13:16 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Dave Anderson 2012-05-23 15:29:57 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";
Comment 1 Jeroen De Dauw 2012-05-24 13:16:32 UTC
Thanks for sharing. This has been fixed in the latest code.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links