Web browser: ---
            Bug ID: 58591
           Summary: Don't use potentially undefined constants in namespace
           Product: MediaWiki extensions
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: Unprioritized
         Component: GWToolset
    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
/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

Reply via email to