Project

General

Profile

Bug #21388 » typo3-4.2.9-no-typo3temp-fill-with-javascript.patch

Administrator Admin, 2009-10-28 11:37

View differences:

typo3_src-4.2.9/typo3/sysext/cms/tslib/media/scripts/gmenu_layers.php 2009-10-15 12:37:24.000000000 +0200
* @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(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' . t3lib_div::getIndpEnv('TYPO3_HOST_ONLY')),0,6); // NO '_' (underscore) in the ID!!! NN4 breaks!
$GLOBALS['TSFE']->applicationData['GMENU_LAYERS']['WMid'][]=$this->WMid;
$this->WMtempStore = $GLOBALS['TSFE']->applicationData['GMENU_LAYERS']['WMid'];
-- typo3_src-4.2.9/typo3/sysext/cms/tslib/media/scripts/tmenu_layers.php.orig 2009-09-28 19:58:55.000000000 +0200
++ typo3_src-4.2.9/typo3/sysext/cms/tslib/media/scripts/tmenu_layers.php 2009-10-15 12:37:23.000000000 +0200
......
* @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(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('tl' . t3lib_div::getIndpEnv('TYPO3_HOST_ONLY')),0,6); // NO '_' (underscore) in the ID!!! NN4 breaks!
$GLOBALS['TSFE']->applicationData['GMENU_LAYERS']['WMid'][]=$this->WMid;
$this->WMtempStore = $GLOBALS['TSFE']->applicationData['GMENU_LAYERS']['WMid'];
(1-1/6)