HomePhabricator

Add file repo at setup time, not on registration
8f80a63aec74Unpublished

Authored by hashar on Aug 24 2018, 12:47 PM.

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Add file repo at setup time, not on registration

Adding a repo to $wgForeignFileRepos relies on the defines BS_DATA_DIR
and BS_DATA_PATH. They are provided by BlueSpiceFoundation however the
extension might not have been loaded yet. For example:

wfLoadExtensions( [
   'BlueSpiceAvatars',
   'BlueSpiceFoundation',
] );

In this case the defines are not set and PHP notices are sent.

Move the configuration to the SetupAfterCache.

Bug: T202412
Change-Id: Ibcc8f79ec229d36f76d3cdfa61ffd2e60f7d7c34

Details

Committed
hasharAug 24 2018, 12:51 PM
Parents
rEBSYf3f1461061d7: Merge "Refactoring BlueSpiceAvatars"
Branches
Unknown
Tags
Unknown
References
refs/changes/56/455156/1
ChangeId
Ibcc8f79ec229d36f76d3cdfa61ffd2e60f7d7c34