https://bugzilla.wikimedia.org/show_bug.cgi?id=46295
Munagala Ramanath (Ram) <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected], | |[email protected], | |[email protected] --- Comment #2 from Munagala Ramanath (Ram) <[email protected]> --- Yes, I saw that but rather than parse yet another PHP file I decided to hardcode the core list of 16 values in the code, (especially since the comment in Defines.php strongly warns against changing those values) e.g. static final private HashMap<String, Integer> nsmap = new HashMap<String, Integer>(); static { nsmap.put( "NS_MAIN", 0 ); nsmap.put( "NS_TALK", 1 ); nsmap.put( "NS_USER", 2 ); nsmap.put( "NS_USER_TALK", 3 ); nsmap.put( "NS_PROJECT", 4 ); nsmap.put( "NS_PROJECT_TALK", 5 ); nsmap.put( "NS_FILE", 6 ); nsmap.put( "NS_FILE_TALK", 7 ); nsmap.put( "NS_MEDIAWIKI", 8 ); nsmap.put( "NS_MEDIAWIKI_TALK", 9 ); nsmap.put( "NS_TEMPLATE", 10 ); nsmap.put( "NS_TEMPLATE_TALK", 11 ); nsmap.put( "NS_HELP", 12 ); nsmap.put( "NS_HELP_TALK", 13 ); nsmap.put( "NS_CATEGORY", 14 ); nsmap.put( "NS_CATEGORY_TALK", 15 ); } -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
