Fixed bug #12376: typo3temp got filled with thousands of javascript_* files (Thanks...
authorSteffen Kamper <info@sk-typo3.de>
Mon, 11 Oct 2010 20:47:22 +0000 (20:47 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Mon, 11 Oct 2010 20:47:22 +0000 (20:47 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9038 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/media/scripts/gmenu_layers.php
typo3/sysext/cms/tslib/media/scripts/tmenu_layers.php

index 2365c3e..15cf0c9 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-10-11  Steffen Kamper  <steffen@typo3.org>
+
+       * Fixed bug #12376: typo3temp got filled with thousands of javascript_* files (Thanks to Georg Ringer)
+
 2010-10-10  Steffen Gebert  <steffen@steffen-gebert.de>
 
        * Added feature #15783: Improve ExtJS skin: Tabs
index 9e574f0..231f054 100644 (file)
@@ -114,7 +114,7 @@ class tslib_gmenu_layers extends tslib_gmenu {
         * @return      void
         */
        function extProc_init() {
-               $this->WMid = trim($this->mconf['layer_menu_id'])?trim($this->mconf['layer_menu_id']).'x':substr(md5(microtime()),0,6); // NO '_' (underscore) in the ID!!! NN4 breaks!
+               $this->WMid = trim($this->mconf['layer_menu_id']) ? trim($this->mconf['layer_menu_id']) . 'x' : substr(md5('gl' . serialize($this->mconf)), 0, 6);
 
                $GLOBALS['TSFE']->applicationData['GMENU_LAYERS']['WMid'][]=$this->WMid;
                $this->WMtempStore = $GLOBALS['TSFE']->applicationData['GMENU_LAYERS']['WMid'];
index e489f57..b515dec 100644 (file)
@@ -114,7 +114,7 @@ class tslib_tmenu_layers extends tslib_tmenu {
         * @return      void
         */
        function extProc_init() {
-               $this->WMid = trim($this->mconf['layer_menu_id'])?trim($this->mconf['layer_menu_id']).'x':substr(md5(microtime()),0,6); // NO '_' (underscore) in the ID!!! NN4 breaks!
+               $this->WMid = trim($this->mconf['layer_menu_id']) ? trim($this->mconf['layer_menu_id']) . 'x' : substr(md5('gl' . serialize($this->mconf)), 0, 6);
 
                $GLOBALS['TSFE']->applicationData['GMENU_LAYERS']['WMid'][]=$this->WMid;
                $this->WMtempStore = $GLOBALS['TSFE']->applicationData['GMENU_LAYERS']['WMid'];