resourceloader: Fix broken skinStyles loop in #getModifiedTime
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 28 Feb 2014 19:23:11 +0000 (20:23 +0100)
committerKrinkle <krinklemail@gmail.com>
Fri, 28 Feb 2014 19:24:51 +0000 (19:24 +0000)
commit66b736e5fb576cc7633835caaef2a7a0205b5236
treef52627dfc916cca5940a93032e30f209a33c36f9
parente997530e2436aad471c817a55f2a8523e5a9df8e
resourceloader: Fix broken skinStyles loop in #getModifiedTime

The way we interpret the 'skinStyles' array in #getModifiedTime
is broken. For comparision, look at the loop in #getStyleFiles
which we use for the creation of the actual stylesheets (which
works fine).

It mixed up the logic causing it to always end up with an empty
array. So it's not so much that it fails to detect the files
having changed after an update, it never included mtimes of these
files in the first place. If there'd be a module with only
skinStyles resources, it would have timestamp 0 (1970).

Bug: 62068
Change-Id: I2e772a13183e66e4bfbf95057ebfd7f5e0d817ec
includes/resourceloader/ResourceLoaderFileModule.php