https://bugzilla.wikimedia.org/show_bug.cgi?id=37057

       Web browser: ---
             Bug #: 37057
           Summary: Parse error: syntax error, unexpected T_FUNCTION in
                    extensions/SemanticImageInput/SemanticImageInput.php
                    on line 58
           Product: MediaWiki extensions
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Unprioritized
         Component: Semantic MediaWiki
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: wikime...@accounts.davious.org
                CC: jeroen_ded...@yahoo.com, mar...@semantic-mediawiki.org
    Classification: Unclassified
   Mobile Platform: ---


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";

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to