Hi!
If I haven't misunderstood you, it's totally fine doing this. In fact, ConfirmEdit
uses this similar approach to load different CAPTCHA modules.
Best,
Florian
-----Original-Nachricht-----
Betreff: [MediaWiki-l] wfLoadExtension Registration
Datum: 2017-04-24T14:51:51+0200
Von: "Tom Hutchison" <tom(a)hutch4.us>
An: "MediaWiki-l" <mediawiki-l(a)lists.wikimedia.org>
Hi all
Quick question, is there any downside to doing this:
wfLoadExtension('Foo/Bar'); ? It loads the extension and the extension works
as expected.
I wrote an extension for a project which another developer(s) set up with
custom extensions outside of the public www directory. They symlinked this
custom directory back to the public extension directory but all custom
extension are in their own directory. So /extensions has standard MW
extensions and /extensions/Foo contains all the custom extensions. All of
the custom extensions are called with require_once
'$IP/extensions/Foo/Bar01/Bar01.php" and so on. I know you can't do the
standard double entry method with a deprecated message unless you use the
"Foo/Bar" in the wfLoadExtension statement with the custom ones.
wfLoadExtension('Foo/Bar'); works but going forward I wonder about any long
term issues. Wiki is on 1.27 but worry about long term problems as the other
custom extensions are improved to use wfLoadExtension. There would be
multiple extensions which would require this type of call, Foo/Bar,
Foo/Bar1, Foo/Bar2, etc.
Thanks
Tom
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l