Page MenuHomePhabricator

Take into account the special nature of $wgExtensionDirectory in MediaWikiFarm
Closed, ResolvedPublic


This configuration parameter defines the location of extensions (and there is the skins counterpart with $wgStyleDirectory). When it is defined in a wiki configuration, it should be taken into account to search the loading mechanism of extensions/skins.

Event Timeline

Seb35 triaged this task as Low priority.Apr 11 2017, 1:21 PM

Change 361388 had a related patch set uploaded (by Seb35; owner: Seb35):
[mediawiki/extensions/MediaWikiFarm@master] Add support for wgExtensionDirectory and wgStyleDirectory

Change 361388 merged by jenkins-bot:
[mediawiki/extensions/MediaWikiFarm@master] Add support for wgExtensionDirectory and wgStyleDirectory

Note that Composer-managed extensions must be in $IP/extensions and cannot be moved elsewhere because it is written in Composer autoload (and is the expected location during installation/update). Hence Composer-managed extensions must be there even if non-Composer-managed extensions could be elsewhere according to wgExtensionDirectory/wgStyleDirectory. It is not possible to change that, so let’s call it a Composer feature.