(bug 26486) ResourceLoader modules with paths to nonexistent files cause PHP warnings...
authorRoan Kattouw <catrope@users.mediawiki.org>
Sat, 13 Aug 2011 21:25:02 +0000 (21:25 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sat, 13 Aug 2011 21:25:02 +0000 (21:25 +0000)
commitea24f9755f3595a81e3045ea2e8169e60b68be3b
treeb8e5d1f148db89a836b1a6b29f10efdf52d58acd
parent7d7ebfc93a3721eba51c647ae705bdeab9307cb1
(bug 26486) ResourceLoader modules with paths to nonexistent files cause PHP warnings/notices to be thrown. Worked around all of them using file_exists() checks, and introduced a safe wrapper around filemtime() that checks for file_exists(). The only warning I couldn't squash is "Warning: array_map(): An error occurred while invoking the map callback" but that's due to a bug in PHP, which I've reported at https://bugs.php.net/bug.php?id=55416
RELEASE-NOTES-1.19
includes/resourceloader/ResourceLoaderFileModule.php