*** empty log message ***
[Packages/TYPO3.CMS.git] / typo3 / wizard_add.php
index a84eda0..390cc3f 100755 (executable)
@@ -2,7 +2,7 @@
 /***************************************************************
 *  Copyright notice
 *
-*  (c) 1999-2004 Kasper Skaarhoj (kasper@typo3.com)
+*  (c) 1999-2004 Kasper Skaarhoj (kasperYYYY@typo3.com)
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is
@@ -30,7 +30,7 @@
  * $Id$
  * Revised for TYPO3 3.6 November/2003 by Kasper Skaarhoj
  *
- * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
  */
 /**
  * [CLASS/FUNCTION INDEX of SCRIPT]
@@ -50,7 +50,7 @@
 $BACK_PATH = '';
 require ('init.php');
 require ('template.php');
-include ('sysext/lang/locallang_wizards.php');
+$LANG->includeLLFile('EXT:lang/locallang_wizards.xml');
 
 
 
@@ -68,7 +68,7 @@ include ('sysext/lang/locallang_wizards.php');
 /**
  * Script Class for adding new items to a group/select field. Performs proper redirection as needed.
  *
- * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
  * @package TYPO3
  * @subpackage core
  */
@@ -173,7 +173,7 @@ class SC_wizard_add {
                                        $addEl = $this->table.'_'.$this->id;
                                        switch((string)$this->P['params']['setValue'])  {
                                                case 'set':
-                                                       $data[$this->P['table']][$this->P['uid']][$this->P['field']]=$addEl;
+                                                       $data[$this->P['table']][$this->P['uid']][$this->P['field']] = $addEl;
                                                break;
                                                case 'prepend':
                                                        $data[$this->P['table']][$this->P['uid']][$this->P['field']] = $current[$this->P['field']].','.$addEl;
@@ -224,5 +224,4 @@ $SOBE->init();
 foreach($SOBE->include_once as $INC_FILE)      include_once($INC_FILE);
 
 $SOBE->main();
-$SOBE->printContent();
 ?>
\ No newline at end of file