Page MenuHomePhabricator

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

Description

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 created this task.Apr 11 2017, 1:21 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 11 2017, 1:21 PM
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

https://gerrit.wikimedia.org/r/361388

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

https://gerrit.wikimedia.org/r/361388

Seb35 closed this task as Resolved.Jun 25 2017, 10:28 PM

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.