Fixed bug #6071: Switch to User does not work from context menu in List Module.
[Packages/TYPO3.CMS.git] / typo3 / sysext / beuser / class.tx_beuser.php
index 6b22a91..3ef9a8e 100644 (file)
@@ -73,7 +73,7 @@ class tx_beuser {
                if ($BE_USER->isAdmin() && !$backRef->cmLevel && $table == 'be_users')  {       // LEVEL: Primary menu.
                        
                                // "SU" element added:
-                       $url = t3lib_extMgm::extRelPath('beuser').'mod/index.php?SwitchUser='.rawurlencode($uid).'&switchBackUser=1';
+                       $url = 'mod.php?M=tools_beuser&SwitchUser='.rawurlencode($uid).'&switchBackUser=1';
                        $localItems[] = $backRef->linkItem(
                                'Switch To User',
                                $backRef->excludeIcon('<img '.t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'],'gfx/su_back.gif').' border="0" align="top" title="" alt="" />'),