Jsahleen has submitted this change and it was merged. 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(-) Approvals: Jsahleen: Looks good to me, approved jenkins-bot: Verified 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: merged Gerrit-Change-Id: I7c037d60884cc2f9ab7a42b7adfb4743962c1d82 Gerrit-PatchSet: 6 Gerrit-Project: mediawiki/extensions/TwnMainPage Gerrit-Branch: master Gerrit-Owner: Nikerabbit <niklas.laxst...@gmail.com> Gerrit-Reviewer: Jsahleen <jsahl...@wikimedia.org> Gerrit-Reviewer: Krinkle <krinklem...@gmail.com> Gerrit-Reviewer: Nikerabbit <niklas.laxst...@gmail.com> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits