git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2471 709f56b5-9817-0410-a4d7...
authorKasper Skårhøj <kasper@typo3.org>
Wed, 29 Aug 2007 16:10:36 +0000 (16:10 +0000)
committerKasper Skårhøj <kasper@typo3.org>
Wed, 29 Aug 2007 16:10:36 +0000 (16:10 +0000)
typo3/mod/user/ws/class.wslib_gui.php
typo3/sysext/cms/tslib/class.tslib_fe.php
typo3/sysext/version/cm1/index.php

index 0ac21b5..0252e23 100644 (file)
@@ -869,7 +869,7 @@ class wslib_gui {
                                )).'">'.
                                '<img'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/insert1.gif','width="14" height="14"').' alt="" align="top" title="' . $LANG->getLL('img_title_publish') . '" />'.
                                '</a>';
-                       if ($GLOBALS['BE_USER']->workspaceSwapAccess()) {               //  && (int)$rec_on['t3ver_state']!==1 && (int)$rec_off['t3ver_state']!==2
+                       if ($GLOBALS['BE_USER']->workspaceSwapAccess()) {
                                $actionLinks.=
                                        '<a href="'.htmlspecialchars($this->doc->issueCommand(
                                        '&cmd['.$table.']['.$rec_on['uid'].'][version][action]=swap'.
index b826015..eb39175 100755 (executable)
                        if (!$inputCode)        {
                                $inputCode = $_COOKIE['ADMCMD_prev'];
                                SetCookie('ADMCMD_prev', $inputCode, time()+$cookieTTL);
-                               echo "1";
                        } else {        // Otherwise "log out":
                                SetCookie('ADMCMD_prev', '', 0);
                                die("You logged out from Workspace preview mode. Reload the browser to log in again.");
index 3c7be7c..75b476c 100755 (executable)
@@ -1625,7 +1625,7 @@ class tx_version_cm1 extends t3lib_SCbase {
                                                )).'">'.
                                '<img'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/insert1.gif','width="14" height="14"').' alt="" align="top" title="Publish" />'.
                                '</a>';
-                       if ($GLOBALS['BE_USER']->workspaceSwapAccess()) {               //  && (int)$rec_on['t3ver_state']!==1 && (int)$rec_off['t3ver_state']!==2
+                       if ($GLOBALS['BE_USER']->workspaceSwapAccess()) {
                                $actionLinks.=
                                        '<a href="'.htmlspecialchars($this->doc->issueCommand(
                                                        '&cmd['.$table.']['.$rec_on['uid'].'][version][action]=swap'.