]> source.dussan.org Git - nextcloud-server.git/commitdiff
include core version into js/css version tag - fixes #13702
authorThomas Müller <thomas.mueller@tmit.eu>
Mon, 2 Feb 2015 11:52:33 +0000 (12:52 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Mon, 2 Feb 2015 12:02:11 +0000 (13:02 +0100)
lib/private/templatelayout.php

index 44a8cd3a8037c134ec9ba4e9ee198f472184a475..1a97eb26347af704f373a98065612cef1935da76 100644 (file)
@@ -92,7 +92,9 @@ class OC_TemplateLayout extends OC_Template {
 
 
                if(empty(self::$versionHash)) {
-                       self::$versionHash = md5(implode(',', OC_App::getAppVersions()));
+                       $v = OC_App::getAppVersions();
+                       $v['core'] = implode('.', \OC_Util::getVersion());
+                       self::$versionHash = md5(implode(',', $v));
                }
 
                $useAssetPipeline = self::isAssetPipelineEnabled();
@@ -214,7 +216,7 @@ class OC_TemplateLayout extends OC_Template {
        }
 
        /**
-        * Converts the absolute filepath to a relative path from \OC::$SERVERROOT
+        * Converts the absolute file path to a relative path from \OC::$SERVERROOT
         * @param string $filePath Absolute path
         * @return string Relative path
         * @throws Exception If $filePath is not under \OC::$SERVERROOT