Nikerabbit has uploaded a new change for review. https://gerrit.wikimedia.org/r/177987
Change subject: Cleanup getModifiedTime per If92ca3e7 in core ...................................................................... Cleanup getModifiedTime per If92ca3e7 in core Change-Id: I7c037d60884cc2f9ab7a42b7adfb4743962c1d82 --- M ResourceLoaderProjectIconsModule.php 1 file changed, 1 insertion(+), 5 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TwnMainPage refs/changes/87/177987/1 diff --git a/ResourceLoaderProjectIconsModule.php b/ResourceLoaderProjectIconsModule.php index a52c16f..6d34401 100644 --- a/ResourceLoaderProjectIconsModule.php +++ b/ResourceLoaderProjectIconsModule.php @@ -69,10 +69,6 @@ return array( 'all' => $out ); } - /** - * @param $context ResourceLoaderContext - * @return array|int|Mixed - */ public function getModifiedTime( ResourceLoaderContext $context ) { $cache = wfGetCache( CACHE_ANYTHING ); $key = wfMemcKey( 'resourceloader', 'twnmainpage', 'icons' ); @@ -84,7 +80,7 @@ if ( is_array( $result ) && $result['hash'] === $hash ) { return $result['timestamp']; } - $timestamp = wfTimestamp(); + $timestamp = time(); $cache->set( $key, array( 'hash' => $hash, 'timestamp' => $timestamp, -- To view, visit https://gerrit.wikimedia.org/r/177987 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I7c037d60884cc2f9ab7a42b7adfb4743962c1d82 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/TwnMainPage Gerrit-Branch: master Gerrit-Owner: Nikerabbit <niklas.laxst...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits