Follow-up to r44216/r44217 "Followup to r44204. Hardcoding image because it should...
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 10 Dec 2008 22:07:04 +0000 (22:07 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 10 Dec 2008 22:07:04 +0000 (22:07 +0000)
commiteeba48d490990f275f81f2f027b85285cd7ced95
treebfcaa941cb361c980b78f2e9790532aa30376d24
parent525a9299cdceb1606bc9b833de70fc0753fe0d0b
Follow-up to r44216/r44217 "Followup to r44204. Hardcoding image because it should (in theory) work always and forever. If you have a wiki acting as repo and you've overridden the canonical name Image: it's your own fault."
It was noted that the existing code could fail for unusual article path settings including a suffix if only the 'articleUrl' was available. Pretty corner case, and probably breaks a lot of other things, but who knows. :)
Went ahead and refactored this a bit to handle the case and feel a little cleaner to me...
Dropped the private getDescBaseUrl() method since this seems a little easier to handle directly in getDescriptionUrl() now.
includes/filerepo/FileRepo.php