Last modified: 2014-05-07 00:22:11 UTC
The text "//upload.wikimedia.org/wikipedia/commons/" in InitialiseSettings.php is currently duplicated a lot (over 350 times; cf. <https://noc.wikimedia.org/conf/InitialiseSettings.php.txt>). I'm wondering whether it makes sense to store this string in a reusable variable (e.g., $commonsPath). Pro: it would reduce the overall file size and make certain sections (particularly the logo section) easier to read. Con: it would slightly obfuscate the path to (for example) a logo. Rather than being a mostly complete string as it is now, it would become "$commonsPath . /1/d/whatever.png".
Or even a constant could make sense at the top of the file (it's really not going to be changing any time soon etc)
Change 131914 had a related patch set uploaded by Withoutaname: Reduce string URLs to defined constant https://gerrit.wikimedia.org/r/131914