On Thu, Jun 30, 2011 at 11:34 AM, Bryan Tong Minh
How do I pass parameters dynamically to an RL module? I need to pass a
FileRepo object to the RL module when I call $wgOut->addModuleStyle().
I'm not sure this is really possible; all that happens when you call
$wgOut->addModuleStyle() is that the given module and its dependencies get
added to the list of modules' styles to load up via <link rel> tags pointing
The subsequent call to load.php will be handled by either an HTTP cache or
by another PHP request, so it won't have any parameters you may have given
to an object in that first process.
If it'll be the same file on every request, or tied to your user login
session, then you should be able to handle that the same way as
ResourceLoaderUserModule by pulling from some user or global state.
If it's different on every page you're going to output it on, then you may
need to use a different technique.