### Eclipse Workspace Patch 1.0
#P igeworkspace42
Index: typo3/sysext/version/mod2/locallang.xml
===================================================================
--- typo3/sysext/version/mod2/locallang.xml (revision 290)
+++ typo3/sysext/version/mod2/locallang.xml (working copy)
@@ -9,6 +9,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
Index: typo3/sysext/version/mod2/changeStage.js
===================================================================
--- typo3/sysext/version/mod2/changeStage.js (revision 0)
+++ typo3/sysext/version/mod2/changeStage.js (revision 0)
@@ -0,0 +1,33 @@
+/***************************************************************
+* Copyright notice
+*
+* (c) 2009 Sonja Scholz
+* All rights reserved
+*
+* This script is part of the TYPO3 project. The TYPO3 project is
+* free software; you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation; either version 2 of the License, or
+* (at your option) any later version.
+*
+* The GNU General Public License can be found at
+* http://www.gnu.org/copyleft/gpl.html.
+*
+* This script is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* This copyright notice MUST APPEAR in all copies of the script!
+***************************************************************/
+/**
+ * [CLASS/FUNCTION INDEX of SCRIPT]
+ *
+ * Hint: use extdeveval to insert/update function index above.
+ */
+
+// TYPO3 code extracted from index.php
+
+function jumpToUrl(URL) {
+ document.location = URL;
+}
\ No newline at end of file
Index: typo3/sysext/version/mod2/index.php
===================================================================
--- typo3/sysext/version/mod2/index.php (revision 324)
+++ typo3/sysext/version/mod2/index.php (working copy)
@@ -2,7 +2,7 @@
/***************************************************************
* Copyright notice
*
-* (c) 2009 cab services ag
+* (c) 2009 Sonja Scholz
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
@@ -27,10 +27,6 @@
* Hint: use extdeveval to insert/update function index above.
*/
-//unset($MCONF);
-//require ('conf.php');
-//require ($BACK_PATH.'init.php');
-//require ($BACK_PATH.'template.php');
$LANG->includeLLFile('EXT:version/mod2/locallang.xml');
require_once(PATH_t3lib . 'class.t3lib_scbase.php');
require_once(PATH_typo3 . 'mod/user/ws/class.wsstagelib.php');
@@ -83,49 +79,30 @@
function main() {
global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$CLIENT,$TYPO3_CONF_VARS;
- // Access check!
- // The page will show only if there is a valid page and if this page may be viewed by the user
- //$this->pageinfo = t3lib_BEfunc::readPageAccess($this->id,$this->perms_clause);
- //$access = is_array($this->pageinfo) ? 1 : 0;
-
// initialize doc
$this->doc = t3lib_div::makeInstance('template');
$this->doc->setModuleTemplate(t3lib_extMgm::extPath('version') . 'mod2//mod_template.html');
$this->doc->backPath = $BACK_PATH;
$docHeaderButtons = $this->getButtons();
- //if (($this->id && $access) || ($BE_USER->user['admin'] && !$this->id)) {
-
- // Decide if the menu button was clicked or it was called by workspace module
- if(!t3lib_div::GPvar('changeItems') && !t3lib_div::GPvar('items')) {
- header('Location: '.$this->doc->packPath.'mod/user/ws/index.php');
- }
-
- // Draw the form
- $this->doc->form = '