From 33e5eadafb81e729fc4c851cfdafca647317a14a Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Wed, 16 Feb 2011 07:19:33 +0000 Subject: [PATCH] (bug 27302) Don't append the current timestamp for user/site modules when no user/site JS/CSS is present. Was caused by 1 being rounded down to 0, which is interpreted as 'now' by wfTimestamp(). This revision just drops timestamp rounding because it's not used consistently anyway --- includes/OutputPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index b3a7eb9684..711b5d2736 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -2496,7 +2496,7 @@ class OutputPage { $timestamp = max( $timestamp, $module->getModifiedTime( $context ) ); } // Add a version parameter so cache will break when things change - $query['version'] = wfTimestamp( TS_ISO_8601_BASIC, round( $timestamp, -2 ) ); + $query['version'] = wfTimestamp( TS_ISO_8601_BASIC, $timestamp ); } // Make queries uniform in order ksort( $query ); -- 2.20.1