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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l