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

       Web browser: ---
             Bug #: 36558
           Summary: bug in array code blocks usage with certain versions
                    of ArrayExtension
           Product: MediaWiki extensions
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: SemanticResultFormats
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---


Discovered this on my site Referata, they currently have SRF 1.8alpha and
ArrayExtension 1.3.2.  (http://guildwars2.referata.com/wiki/Special:Version)
Attempting to use the array format at all returns this error:

Fatal error: Class 'ExtArrayExtension' not found in
/home/yaron57/public_html/w/extensions/SemanticResultFormats/Array/SRF_Array.php
on line 223


It looks like a simple typo on that line.

222    if( defined( 'ArrayExtension::VERSION' ) ) {
223        $version = ExtArrayExtension::VERSION;
224    } elseif( defined( 'ExtArrayExtension::VERSION' ) ) {
225        $version = ExtArrayExtension::VERSION;
226    }


Shouldn't that global name match the name on the line above? Like this:

222    if( defined( 'ArrayExtension::VERSION' ) ) {
223        $version = ArrayExtension::VERSION;
224    } elseif( defined( 'ExtArrayExtension::VERSION' ) ) {
225        $version = ExtArrayExtension::VERSION;
226    }

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

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to