]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add cache buster to left menu bar
authorLukas Reschke <lukas@statuscode.ch>
Thu, 18 Aug 2016 10:34:55 +0000 (12:34 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Thu, 18 Aug 2016 10:45:52 +0000 (12:45 +0200)
core/templates/layout.user.php
lib/private/TemplateLayout.php

index 2c0d3f05297ee753de52922d42acc01ab83e2bdd..a5025d5bedaa80564e6adc2db79575d46a200ad0 100644 (file)
                                                        <?php if( $entry['active'] ): ?> class="active"<?php endif; ?>>
                                                        <svg width="32" height="32" viewBox="0 0 32 32">
                                                                <defs><filter id="invert"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0"></feColorMatrix></filter></defs>
-                                                               <image x="0" y="0" width="32" height="32" preserveAspectRatio="xMinYMin meet" filter="url(#invert)" xlink:href="<?php print_unescaped($entry['icon']); ?>"  class="app-icon"></image>
+                                                               <image x="0" y="0" width="32" height="32" preserveAspectRatio="xMinYMin meet" filter="url(#invert)" xlink:href="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>"  class="app-icon"></image>
                                                        </svg>
                                                        <div class="icon-loading-dark" style="display:none;"></div>
                                                        <span>
                                                        <?php if( $_['appsmanagement_active'] ): ?> class="active"<?php endif; ?>>
                                                        <svg width="32" height="32" viewBox="0 0 32 32" class="app-icon">
                                                                <defs><filter id="invert"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0"></feColorMatrix></filter></defs>
-                                                               <image x="0" y="0" width="32" height="32" preserveAspectRatio="xMinYMin meet" filter="url(#invert)" xlink:href="<?php print_unescaped(image_path('settings', 'apps.svg')); ?>"></image>
+                                                               <image x="0" y="0" width="32" height="32" preserveAspectRatio="xMinYMin meet" filter="url(#invert)" xlink:href="<?php print_unescaped(image_path('settings', 'apps.svg') . '?v=' . $_['versionHash']); ?>"></image>
                                                        </svg>
                                                        <div class="icon-loading-dark" style="display:none;"></div>
                                                        <span>
index 9e3bbf884703465245a9edb09f6720c990e7e83b..7e5c120717fee946261791e1a024a8b81b5d994f 100644 (file)
@@ -153,6 +153,7 @@ class TemplateLayout extends \OC_Template {
                $cssFiles = self::findStylesheetFiles(\OC_Util::$styles);
                $this->assign('cssfiles', array());
                $this->assign('printcssfiles', []);
+               $this->assign('versionHash', self::$versionHash);
                foreach($cssFiles as $info) {
                        $web = $info[1];
                        $file = $info[2];