Hi,

On 03/24/2016 01:23 PM, Rowe, Dolores A wrote:
> Dear Teammates,
> 
> The MediaWiki 1.26.x wiki loads extensions this way:
> wfLoadExtension( 'Cite' );
> wfLoadExtension( 'ImageMap' );
> wfLoadExtension( 'ParserFunctions' );
> 
> Is that supposed to be how to load all extensions nowadays ?

Yes, for extensions that have an extension.json (or
wfLoadSkin()/skin.json), you should use this method.

> Or will some of them still be loaded thisaway with require_once ?
> require_once "$IP/extensions/VisualEditor/VisualEditor.php";

Not all extensions have been switched over yet, so you might still need
to use the old require_once-style loading. VisualEditor does have an
extension.json though :-).

-- Legoktm

_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to