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





--- Comment #1 from Wolfgang Fahl <[EMAIL PROTECTED]>  2008-12-05 04:28:23 UTC 
---
After looking into the details of this I think the handling of global variables
should not assume that the initialization 
is done in the global space.

I tried to autoload a Class that does than initialize Wikimedia and it doesn't
work since e.g. DefaultSettings.php does not declare
the variables to be global - it is simply assumed that the current scope is
global. 
It would be great if on initial declaration of global variable content the 
global $... declaration would be used to avoid this problem.

e.g.
global $wgLegalTitleChars;
$wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;[EMAIL PROTECTED]";

and so on ...


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to