Fixed bug #5949: BE-Shortcut to Tools->User Admin returns error
authorIngmar Schlecht <ingmar.schlecht@typo3.org>
Sat, 20 Oct 2007 18:26:12 +0000 (18:26 +0000)
committerIngmar Schlecht <ingmar.schlecht@typo3.org>
Sat, 20 Oct 2007 18:26:12 +0000 (18:26 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-1@2592 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/template.php

index a775558..a5f14e1 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-10-20  Ingmar Schlecht  <ingmar@typo3.org>
+
+       * Fixed bug #5949: BE-Shortcut to Tools->User Admin returns error (Thanks to Oliver Hader and Christian Kuhn)
+
 2007-10-19  Stanislas Rolland  <stanislas.rolland@fructifor.ca>
 
        * Fixed bug 6546: Remove htmlArea RTE acronym from Insert-Record object
index 03dd9c3..17eea6a 100755 (executable)
@@ -436,6 +436,11 @@ class template {
                $storeUrl=$this->makeShortcutUrl($gvList,$setList);
                $pathInfo = parse_url(t3lib_div::getIndpEnv('REQUEST_URI'));
 
+                       // Add the module identifier automatically if typo3/mod.php is used:
+               if (ereg('typo3/mod\.php$', $pathInfo['path']) && isset($GLOBALS['TBE_MODULES']['_PATHS'][$modName])) {
+                       $storeUrl = '&M='.$modName.$storeUrl;
+               }
                if (!strcmp($motherModName,'1'))        {
                        $mMN="&motherModName='+top.currentModuleLoaded+'";
                } elseif ($motherModName)       {