Open Bug 1136973 Opened 9 years ago Updated 8 years ago

Replace relative directory paths in LocalSettings.php

Categories

(Websites :: wiki.mozilla.org, defect)

defect
Not set
normal

Tracking

(Not tracked)

People

(Reporter: ckoehler, Unassigned)

Details

I've just encountered a case[1] where an extension specifically checks for relative paths in directory-type config settings and throws an exception if it finds one. 

Unfortunately we use the pattern "$IP/../" in quite a few places because we're following a non-standard deployment model. 

We already have a server-specific config file with secrets.php, so it's possible to re-factor and have these settings rely on something else besides $IP and a relative path.  

Depending on where core is expected to be in relation to $IP[2], we might simply be able to set it appropriately.

[1] https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FGraphViz/e4c9ed216652f15a2f0bfeddf7b2984e8eefd04a/GraphRenderParms.php#L194

[2] https://www.mediawiki.org/wiki/Manual:$IP
test
You need to log in before you can comment on or make changes to this bug.