From: Roan Kattouw Date: Wed, 16 Feb 2011 07:19:33 +0000 (+0000) Subject: (bug 27302) Don't append the current timestamp for user/site modules when no user... X-Git-Tag: 1.31.0-rc.0~31979 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=33e5eadafb81e729fc4c851cfdafca647317a14a;p=lhc%2Fweb%2Fwiklou.git (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 --- 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 );