Task #67178

Update extension registration

Added by Chris topher over 4 years ago. Updated 10 days ago.

Status:
Resolved
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 over 4 years ago

This has been done for our custom extensions.

#2 Updated by Chris topher almost 4 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.

#3 Updated by Chris topher 10 days ago

  • Status changed from New to Resolved

Collection, the last of our extensions missing this change, has been updated for MediaWiki 1.34. See https://phabricator.wikimedia.org/T87899.

Also available in: Atom PDF