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

--- Comment #5 from Van de Bugger <[email protected]> 2011-12-13 20:51:48 
UTC ---
BTW, I do not object against automatic inclusion until it makes no problem is
something goes wrong or just in non-standard way. If automatic inclusion
produces clear error messages (like modern C compilers e. g. "redefinition of
macro XXX in file:line, XXX was defined in file:line") I will happy to have
such great tool. But if automatic inclusion produces just a little help for
normal case but generates unclear and misleading error messages, I do not like
it.

And I agree, enabling an extension in MediaWiki sucks. I tried to wrote a
function like this:

function LoadExtension( $name ) {
    include_once( "$IP/extensions/$name/$name.php" );
}

so I can

LoadExtension( 'Array' );
LoadExtension( 'Variable' );

but it does not work, because all the extensions think they are included at
global scope, nobody  declares global variables. D'oh!

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to