pass &backPath=... to clickmenu. Needed for script on other locations than typo3/
authorRené Fritz <r.fritz@colorcube.de>
Thu, 13 Nov 2003 13:59:26 +0000 (13:59 +0000)
committerRené Fritz <r.fritz@colorcube.de>
Thu, 13 Nov 2003 13:59:26 +0000 (13:59 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@57 709f56b5-9817-0410-a4d7-c38de5d9e867

typo3/template.php

index 6c67df4..d24c4ff 100755 (executable)
@@ -266,7 +266,8 @@ class template {
         * @return      string          The link-wrapped input string.
         */
        function wrapClickMenuOnIcon($str,$table,$uid='',$listFr=1)     {
-               $onClick = 'top.loadTopMenu(\''.$this->backPath.'alt_clickmenu.php?item='.rawurlencode($table.'|'.$uid.'|'.$listFr).($this->backPath?'&backPath='.rawurlencode($this->backPath.'|'.md5($this->backPath.'|'.$GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'])):'').'\');'.$this->thisBlur().'return false;';
+               $backPath = '&backPath='.rawurlencode($this->backPath).'|'.md5($this->backPath.'|'.$GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey']);
+               $onClick = 'top.loadTopMenu(\''.$this->backPath.'alt_clickmenu.php?item='.rawurlencode($table.'|'.$uid.'|'.$listFr).$backPath.'\');'.$this->thisBlur().'return false;';
                return '<a href="#" onclick="'.htmlspecialchars($onClick).'">'.$str.'</a>';
        }