Lucas_Werkmeister_WMDE added a comment.

  > Code should not assume that the "namespaces" section from extension.json 
was executed, and the PHP constants been made available.
  
  Then what is the point of that section anyways? What use is it if it defines 
constants, but only under some obscure circumstances which don’t appear to be 
documented anywhere?
  
  > All codebases (well, except this one) still have some redundant `define()` 
in their startup code, most of the time embedded in the 
"ExtensionMessagesFiles" that is responsible for specifying the 
`$namespaceNames` and aliases.
  
  My assumption is that this is only because the extensions still want to 
support earlier MediaWiki versions, or because nobody has bothered to remove 
those old `define()`s yet from back when they were still required.

TASK DETAIL
  https://phabricator.wikimedia.org/T245629

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: thiemowmde, Jdforrester-WMF, Legoktm, Krinkle, Addshore, Daimona, Aklapper, 
Lucas_Werkmeister_WMDE, darthmon_wmde, pdehaye, DannyS712, Nandana, Lahi, Gq86, 
Andrawaag, Pablo-WMDE, GoranSMilovanovic, Jayprakash12345, QZanden, 
YULdigitalpreservation, LawExplorer, Salgo60, _jensen, rosalieper, Scott_WUaS, 
Jonas, MGChecker, MisterSynergy, abian, Wikidata-bugs, aude, Lydia_Pintscher, 
Mbch331, Rxy, Jay8g, Krenair
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to