[MediaWiki-l] wfLoadExtension Registration

Tom Hutchison tom at hutch4.us
Mon Apr 24 12:50:20 UTC 2017


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

 



More information about the MediaWiki-l mailing list