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

       Web browser: ---
            Bug ID: 58591
           Summary: Don't use potentially undefined constants in namespace
                    file
           Product: MediaWiki extensions
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: Unprioritized
         Component: GWToolset
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: s...@reedyboy.net
                CC: bawolff...@gmail.com, d_ent...@yahoo.com,
                    mtrac...@member.fsf.org
    Classification: Unclassified
   Mobile Platform: ---

Otherwise we get warnings in GWToolset.namespaces.php during scap

Notice: Use of undefined constant NS_GWTOOLSET - assumed 'NS_GWTOOLSET' in
/a/common/php-1.23wmf7/extensions/GWToolset/GWToolset.namespaces.php on line 12
PHP Notice:  Use of undefined constant NS_GWTOOLSET_TALK - assumed
'NS_GWTOOLSET_TALK' in
/a/common/php-1.23wmf7/extensions/GWToolset/GWToolset.namespaces.php on line 13


Explicitly use numbers, or add if !defined to the top of the file

if ( !defined( 'NS_GWTOOLSET' ) ) {
    define( 'NS_GWTOOLSET', 490 );
    define( 'NS_GWTOOLSET_TALK', NS_GWTOOLSET + 1 );
}

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