Task #67178

Update extension registration

Added by Chris topher about 4 years ago. Updated over 3 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Start date:
2015-05-28
Due date:
% Done:

0%


Description

Since MediaWiki 1.25, a new way of registrating extensions and skins is available.
Extensions can now move their metadata into extension.json (done already).
In LocalSettings.php, instead of loading them with
require_once "$IP/extensions/FooBar/FooBar.php";
use wfLoadExtension( 'FooBar' ); to load them.
Maybe needs renaming some of the extension files to fit into that naming scheme.

=> Once the MediaWiki extensions have been updated that way, check two things:

  • Update LocalSettings.php accordingly.
  • Also update the
    if ( function_exists( 'wfLoadExtension' ) ) {...}
    code block in the central file of the according extensions.

See https://www.mediawiki.org/wiki/Extension_registration!


Related issues

Follows wiki.typo3.org - Task #67156: Update the Wiki to MediaWiki 1.25 Resolved 2015-05-26

History

#1 Updated by Chris topher about 4 years ago

This has been done for our custom extensions.

#2 Updated by Chris topher over 3 years ago

For the extensions, which have been downloaded from mediawiki.org, this is the umbrella task in Phabricator: https://phabricator.wikimedia.org/T87875. For now, updating their require_once() lines will have to wait.

The Collection extension has been updated for MediaWiki 1.34, see https://phabricator.wikimedia.org/T87899.

The LdapAuthentication extension has not yet been updated accordingly, see https://phabricator.wikimedia.org/T87934.

Also available in: Atom PDF