Fixed bug #12376: typo3temp got filled with thousands of javascript_* files (Thanks...
authorSteffen Kamper <info@sk-typo3.de>
Mon, 11 Oct 2010 20:46:50 +0000 (20:46 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Mon, 11 Oct 2010 20:46:50 +0000 (20:46 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-2@9035 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 2d461d4..1aaaeb6 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-06  Oliver Hader  <oliver@typo3.org>
 
        * Release of TYPO3 4.2.15
index 5d1b836..6ddd8d7 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 b8a8edb..1aa69b8 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'];