Whitespace cleaning of typo3 files
authorSteffen Kamper <info@sk-typo3.de>
Sun, 11 Oct 2009 14:02:27 +0000 (14:02 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Sun, 11 Oct 2009 14:02:27 +0000 (14:02 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6135 709f56b5-9817-0410-a4d7-c38de5d9e867

17 files changed:
ChangeLog
typo3/alt_doc.php
typo3/alt_file_navframe.php
typo3/alt_mod_frameset.php
typo3/alt_shortcut.php
typo3/backend.php
typo3/class.db_list.inc
typo3/class.file_list.inc
typo3/class.webpagetree.php
typo3/db_new.php
typo3/file_list.php
typo3/file_upload.php
typo3/index.php
typo3/mod.php
typo3/mod/user/ws/class.wslib_gui.php
typo3/template.php
typo3/wizard_add.php

index aadef0b..f47e734 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2009-10-10  Steffen Kamper  <info@sk-typo3.de>
 
+       * Whitespace cleaning of typo3 files
        * Whitespace cleaning of t3lib files
 
 2009-10-11  Rupert Germann  <rupi@gmx.li>
index 82d479a..68affa5 100644 (file)
@@ -272,7 +272,7 @@ class SC_alt_doc {
                        // Only options related to $this->data submission are included here.
                $tce = t3lib_div::makeInstance('t3lib_TCEmain');
                $tce->stripslashes_values=0;
-               
+
                if (isset($_POST['_translation_savedok_x']))    {
                        $tce->updateModeL10NdiffData = 'FORCE_FFUPD';
                }
index 4820b74..e1bb503 100644 (file)
@@ -233,7 +233,7 @@ class SC_alt_file_navframe {
                        // Setting up the buttons and markers for docheader
                $docHeaderButtons = $this->getButtons();
                $markers = array(
-                       'IMG_RESET' => '<img' . t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'], 'gfx/close_gray.gif', ' width="16" height="16"') . 
+                       'IMG_RESET' => '<img' . t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'], 'gfx/close_gray.gif', ' width="16" height="16"') .
                        ' id="treeFilterReset" alt="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:labels.resetFilter') . '" ' .
                        'title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:labels.resetFilter') . '" />',
                        'CONTENT' => $this->content
index 7fa742b..36ba4bf 100644 (file)
@@ -109,7 +109,7 @@ class SC_alt_mod_frameset {
 
                        // List frame URL:
                $URL_list = htmlspecialchars($this->exScript ? $this->exScript : ($script . ($this->id ? (strpos($script, '?') ? '&' : '?' ) . 'id=' . rawurlencode($this->id) : '')));
-                       
+
                        // Start page output
                $TBE_TEMPLATE->docType='xhtml_frames';
                $this->content = $TBE_TEMPLATE->startPage('Frameset');
index 65422ec..47d7d87 100644 (file)
@@ -166,7 +166,7 @@ class SC_alt_shortcut {
                $url = urldecode($this->URL);
 
                        // Lookup the title of this page and use it as default description
-               $page_id = $this->getLinkedPageId($url);         
+               $page_id = $this->getLinkedPageId($url);
                if (t3lib_div::testInt($page_id))       {
                        if (preg_match('/\&edit\[(.*)\]\[(.*)\]=edit/',$url,$matches))  {
                                        // Edit record
index c8cbf00..6256817 100644 (file)
@@ -209,7 +209,7 @@ class TYPO3backend {
                $pageRenderer = $GLOBALS['TBE_TEMPLATE']->getPageRenderer();
                $pageRenderer->loadScriptaculous('builder,effects,controls,dragdrop');
                $pageRenderer->loadExtJS();
-               
+
                        // remove duplicate entries
                $this->jsFiles = array_unique($this->jsFiles);
 
@@ -220,12 +220,12 @@ class TYPO3backend {
                $GLOBALS['TBE_TEMPLATE']->JScode .= chr(10);
                $this->generateJavascript();
                $GLOBALS['TBE_TEMPLATE']->JScode .= $GLOBALS['TBE_TEMPLATE']->wrapScriptTags($this->js) . chr(10);
-               
+
                foreach($this->jsFilesAfterInline as $jsFile) {
                        $GLOBALS['TBE_TEMPLATE']->JScode .= '
                        <script type="text/javascript" src="' . $jsFile . '"></script>';
                }
-               
+
 
                        // FIXME abusing the JS container to add CSS, need to fix template.php
                foreach($this->cssFiles as $cssFileName => $cssFile) {
@@ -359,7 +359,7 @@ class TYPO3backend {
                                // t3lib_div::locationHeaderUrl() will include '/typo3/' in the URL
                                htmlspecialchars(t3lib_div::locationHeaderUrl('gfx/clear.gif')) .
                                '";
-       
+
 
        TYPO3.configuration = ' . json_encode(array(
                'siteUrl' => t3lib_div::getIndpEnv('TYPO3_SITE_URL'),
@@ -376,7 +376,7 @@ class TYPO3backend {
                'veriCode' => $GLOBALS['BE_USER']->veriCode(),
                'denyFileTypes' => PHP_EXTENSIONS_DEFAULT,
        )) . ';
-       TYPO3.LLL = { 
+       TYPO3.LLL = {
                        core : ' . json_encode(array(
                'waitTitle' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:mess.refresh_login_logging_in') ,
                'refresh_login_failed' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:mess.refresh_login_failed'),
@@ -394,7 +394,7 @@ class TYPO3backend {
                'login_about_to_expire' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:mess.login_about_to_expire'),
                'login_about_to_expire_title' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:mess.login_about_to_expire_title'),
                'refresh_login_refresh_button' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:mess.refresh_login_refresh_button'),
-               'refresh_direct_logout_button' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:mess.refresh_direct_logout_button'),        
+               'refresh_direct_logout_button' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:mess.refresh_direct_logout_button'),
        )) . ',
                fileUpload: ' . json_encode(array(
                        'windowTitle' => $GLOBALS['LANG']->getLL('fileUpload_windowTitle'),
@@ -441,7 +441,7 @@ class TYPO3backend {
        var TS = new typoSetup();
 
        var currentModuleLoaded = "";
-       var goToModule = ' . $goToModuleSwitch . '; 
+       var goToModule = ' . $goToModuleSwitch . ';
 
        /**
         * Frameset Module object
index aa61d19..fcb40f5 100644 (file)
@@ -178,7 +178,7 @@ class recordList extends t3lib_recordList {
                $this->counter=0;
                $this->JScode='';
                $this->HTMLcode='';
-        
+
                        // limits
                if(isset($this->modTSconfig['properties']['itemsLimitPerTable'])) {
                        $this->itemsLimitPerTable = t3lib_div::intInRange(intval($this->modTSconfig['properties']['itemsLimitPerTable']), 1, 10000);
@@ -186,7 +186,7 @@ class recordList extends t3lib_recordList {
                if(isset($this->modTSconfig['properties']['itemsLimitSingleTable'])) {
                        $this->itemsLimitSingleTable = t3lib_div::intInRange(intval($this->modTSconfig['properties']['itemsLimitSingleTable']), 1, 10000);
                }
-               
+
                        // Set select levels:
                $sL=intval($this->searchLevels);
                $this->perms_clause = $GLOBALS['BE_USER']->getPagePermsClause(1);
index 09c9204..d85a452 100644 (file)
@@ -253,7 +253,7 @@ class fileList extends t3lib_recordList {
 
                        // Header line is drawn
                $theData = Array();
-               
+
                foreach ($this->fieldArray as $v)       {
                        if ($v == '_CLIPBOARD_' && $this->clipBoard) {
                                $cells=array();
@@ -676,7 +676,7 @@ class fileList extends t3lib_recordList {
 
        /**
        * Creates the edit control section
-       * 
+       *
        * @param        array           Array with information about the file/directory for which to make the edit control section for the listing.
        * @return       string          HTML-table
        */
@@ -684,25 +684,25 @@ class fileList extends t3lib_recordList {
                $cells = array();
                $fullIdent = $theData['path'].$theData['file'];
                $canEdit = t3lib_div::inList($GLOBALS['TYPO3_CONF_VARS']['SYS']['textfile_ext'], $theData['realFileext']);
-               
+
                        // prepare space icon
                $iconWidth  = $GLOBALS['TBE_STYLES']['skinImgAutoCfg']['iconSizeWidth']  ? $GLOBALS['TBE_STYLES']['skinImgAutoCfg']['iconSizeWidth']  : 12;
                $iconHeight = $GLOBALS['TBE_STYLES']['skinImgAutoCfg']['iconSizeHeight'] ? $GLOBALS['TBE_STYLES']['skinImgAutoCfg']['iconSizeHeight'] : 12;
                $spaceIcon = '<img src="' . $this->backPath . 'clear.gif" width="' . $iconWidth . '" height="' . $iconHeight . '" title="" alt="" />';
 
-               
+
                        //edit
                if ($theData['type'] == 'dir' || !$canEdit) {
                        $cells['edit'] = $spaceIcon;
                } else {
                        $editOnClick = 'top.content.list_frame.location.href=top.TS.PATH_typo3+\'file_edit.php?target=' .
-                               rawurlencode($fullIdent) . 
+                               rawurlencode($fullIdent) .
                                '&returnUrl=\'+top.rawurlencode(top.content.list_frame.document.location);return false;';
                        $cells['edit'] = '<a href="#" onclick="' . $editOnClick . '"><img' . t3lib_iconWorks::skinImg('', 'gfx/edit_file.gif', 'width="' . $iconWidth . '" height="' . $iconHeight . '"') . ' title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:cm.edit') . '" alt="" /></a>';
                }
                        //rename
                $renameOnClick = 'top.content.list_frame.location.href=top.TS.PATH_typo3+\'file_rename.php?target=' .
-                       rawurlencode($fullIdent) . 
+                       rawurlencode($fullIdent) .
                        '&returnUrl=\'+top.rawurlencode(top.content.list_frame.document.location);return false;';
                $cells['rename'] = '<a href="#" onclick="' . $renameOnClick . '"><img' . t3lib_iconWorks::skinImg('', 'gfx/rename.gif', 'width="' . $iconWidth . '" height="' . $iconHeight . '"') . ' title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:cm.rename') . '" alt="" /></a>';
 
@@ -722,7 +722,7 @@ class fileList extends t3lib_recordList {
                                $hookObject->manipulateEditIcons($cells, $this);
                        }
                }
-               
+
                        // Compile items into a DIV-element:
                return '                                                        <!-- EDIT CONTROLS: -->
                                                                                        <div class="typo3-editCtrl">
@@ -730,7 +730,7 @@ class fileList extends t3lib_recordList {
                                                                                                ', $cells).'
                                                                                        </div>';
        }
-       
+
        /**
         * Make reference count
         *
index f37f0b4..9ba5bba 100644 (file)
@@ -162,7 +162,7 @@ class webPageTree extends t3lib_browseTree {
                        }
                        unset($_params);
                }
-               
+
                $aOnClick = 'return jumpTo(\''.$this->getJumpToParam($row).'\',this,\''.$this->domIdPrefix.$this->getId($row).'\','.$bank.');';
                $CSM = '';
                if ($GLOBALS['TYPO3_CONF_VARS']['BE']['useOnContextMenuHandler'])       {
index 9e83e06..dfd3757 100644 (file)
@@ -361,11 +361,11 @@ class SC_db_new {
         * @return      void
         */
        function regularNew()   {
-               
+
                $doNotShowFullDescr = false;
                        // Initialize array for accumulating table rows:
                $this->tRows = array();
-               
+
                        // tree images
                $halfLine = '<img' . t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/ol/halfline.gif', 'width="18" height="8"') . ' alt="" />';
                $firstLevel = '<img' . t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/ol/join.gif', 'width="18" height="16"') . ' alt="" />';
@@ -373,7 +373,7 @@ class SC_db_new {
                                                <img' . t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/ol/join.gif', 'width="18" height="16"') . ' alt="" />';
                $secondLevelLast = '<img' . t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/ol/line.gif', 'width="18" height="16"') . ' alt="" />
                                                <img' . t3lib_iconWorks::skinImg($this->doc->backPath, 'gfx/ol/joinbottom.gif', 'width="18" height="16"') . ' alt="" />';
-               
+
                        // Slight spacer from header:
                $this->code .= $halfLine;
 
@@ -383,7 +383,7 @@ class SC_db_new {
                $pageIcon = t3lib_iconWorks::getIconImage($table, array(), $this->doc->backPath, '');
                $newPageIcon = '<img' . t3lib_iconWorks::skinImg($this->doc->backPath, 'gfx/new_page.gif', 'width="13" height="12"') . ' alt="" />';
                $rowContent = $firstLevel . $newPageIcon . '&nbsp;<strong>' . $GLOBALS['LANG']->getLL('createNewPage') . '</strong>';
-               
+
                        // New pages INSIDE this pages
                if ($this->newPagesInto
                        && $this->isTableAllowedForThisPage($this->pageinfo, 'pages')
@@ -392,38 +392,38 @@ class SC_db_new {
                        )       {
 
                                // Create link to new page inside:
-                       
+
                        $rowContent .= '<br />' . $secondLevel . $this->linkWrap(
                                                '<img' . t3lib_iconWorks::skinImg($this->doc->backPath, 'gfx/i/' . ($v['ctrl']['iconfile'] ? $v['ctrl']['iconfile'] : $table . '.gif'), 'width="18" height="16"') . ' alt="" />' .
                                                $GLOBALS['LANG']->sL($v['ctrl']['title'], 1) . ' (' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:db_new.php.inside', 1) . ')',
                                                $table,
                                                $this->id);
                }
-                       
+
                                // New pages AFTER this pages
                if ($this->newPagesAfter
                                && $this->isTableAllowedForThisPage($this->pidInfo, 'pages')
                                && $GLOBALS['BE_USER']->check('tables_modify', 'pages')
                                && $GLOBALS['BE_USER']->workspaceCreateNewRecord($this->pidInfo['uid'], 'pages')
                                )       {
-                       
-                               $rowContent .= '<br />' . $secondLevel . 
+
+                               $rowContent .= '<br />' . $secondLevel .
                                $this->linkWrap(
                                        $pageIcon .
                                                $GLOBALS['LANG']->sL($v['ctrl']['title'], 1) . ' (' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:db_new.php.after',1) . ')',
                                        'pages',
                                        -$this->id
                                );
-                               
+
                }
-                       
+
                        // Link to page-wizard:
                $rowContent.=  '<br />' . $secondLevelLast .
                        '<a href="' . htmlspecialchars(t3lib_div::linkThisScript(array('pagesOnly' => 1))) . '">' .
                        $pageIcon .
                        htmlspecialchars($GLOBALS['LANG']->getLL('pageSelectPosition')) .
                        '</a>';
-                       
+
                        // Half-line:
                $rowContent.= '<br />' . $halfLine;
 
@@ -434,10 +434,10 @@ class SC_db_new {
                                <td>' . t3lib_BEfunc::cshItem($table, '', $this->doc->backPath, '', $doNotShowFullDescr) . '</td>
                        </tr>
                ';
-       
-        
+
+
                        // New tables (but not pages) INSIDE this pages
-               
+
                $newContentIcon = '<img' . t3lib_iconWorks::skinImg($this->doc->backPath, 'gfx/new_record.gif', 'width="16" height="12"') . ' alt="" />';
                if ($this->newContentInto)      {
                        if (is_array($GLOBALS['TCA']))  {
@@ -455,7 +455,7 @@ class SC_db_new {
 
                                                $newRecordIcon = t3lib_iconWorks::getIconImage($table ,array(), $this->doc->backPath, '');
                                                $rowContent = '';
-                                               
+
                                                        // Create new link for record:
                                                $newLink = $this->linkWrap(
                                                        $newRecordIcon . $GLOBALS['LANG']->sL($v['ctrl']['title'],1)
@@ -471,14 +471,14 @@ class SC_db_new {
                                                        $pathToWizard = (t3lib_extMgm::isLoaded($overrideExt)) ? (t3lib_extMgm::extRelPath($overrideExt).'mod1/db_new_content_el.php') : 'sysext/cms/layout/db_new_content_el.php';
 
                                                        $href = $pathToWizard . '?id=' . $this->id . '&returnUrl=' . rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'));
-                                                       $rowContent.= '<br />' . $secondLevel . $newLink . '<br />' . 
+                                                       $rowContent.= '<br />' . $secondLevel . $newLink . '<br />' .
                                                                $secondLevelLast .
                                                                '<a href="' . htmlspecialchars($href) . '">' .
                                                                        $newContentIcon . htmlspecialchars($GLOBALS['LANG']->getLL('clickForWizard')) .
                                                                '</a>';
 
                                                                // Half-line added:
-                                                       $rowContent.= '<br />' . $halfLine;  
+                                                       $rowContent.= '<br />' . $halfLine;
                                                }  else {
                                                        // get the title
                                                        $nameParts = explode('_', $table);
@@ -510,16 +510,16 @@ class SC_db_new {
                                                        } else {
                                                                $_EXTKEY = 'system';
                                                                $thisTitle = $GLOBALS['LANG']->getLL('system_records');
-                                                               $iconFile['system'] = '<img src="gfx/typo3.png" />';    
+                                                               $iconFile['system'] = '<img src="gfx/typo3.png" />';
                                                        }
-                                                       
+
                                                        if($groupName == '' || $groupName != $_EXTKEY) {
                                                                $groupName = $_EXTKEY;
-                                                       } 
-                                                       
-                                                       $rowContent .= $newLink; 
+                                                       }
+
+                                                       $rowContent .= $newLink;
                                                        $counter++;
-                                                       
+
                                                }
 
 
@@ -542,31 +542,31 @@ class SC_db_new {
 
                        // user sort
                $pageTS = t3lib_BEfunc::getPagesTSconfig($this->id);
-               if (isset($pageTS['mod.']['wizards.']['newRecord.']['order'])) { 
+               if (isset($pageTS['mod.']['wizards.']['newRecord.']['order'])) {
                        $this->newRecordSortList = t3lib_div::trimExplode(',', $pageTS['mod.']['wizards.']['newRecord.']['order'], true);
                }
                uksort($this->tRows, array($this, 'sortNewRecordsByConfig'));
-               
+
                        // Compile table row:
                $finalRows = array();
-               $finalRows[] = implode('', $startRows); 
+               $finalRows[] = implode('', $startRows);
                foreach ($this->tRows as $key => $value) {
                        $row = '<tr>
                                                <td nowrap="nowrap">' . $halfLine . '<br />' .
-                                               $firstLevel . '' . $iconFile[$key] . '&nbsp;<strong>' . $value['title'] . '</strong>' . 
+                                               $firstLevel . '' . $iconFile[$key] . '&nbsp;<strong>' . $value['title'] . '</strong>' .
                                                '</td><td>'.t3lib_BEfunc::cshItem($t,'',$this->doc->backPath,'',$doNotShowFullDescr).'</td>
                                                </tr>';
-                       $count = count($value['html']) - 1;     
-                       foreach ($value['html'] as $recordKey => $record) { 
+                       $count = count($value['html']) - 1;
+                       foreach ($value['html'] as $recordKey => $record) {
                                $row .= '
                                        <tr>
                                                <td nowrap="nowrap">' . ($recordKey < $count ? $secondLevel : $secondLevelLast) . $record . '</td>
                                                <td>'.t3lib_BEfunc::cshItem($value['table'][$recordKey], '', $this->doc->backPath, '', $doNotShowFullDescr) . '</td>
-                                       </tr>'; 
+                                       </tr>';
                        }
-                       $finalRows[] = $row;                    
+                       $finalRows[] = $row;
                }
-               
+
                        // end of tree
                $finalRows[]='
                        <tr>
@@ -574,8 +574,8 @@ class SC_db_new {
                                <td></td>
                        </tr>
                ';
-               
-               
+
+
                        // Make table:
                $this->code.='
                        <table border="0" cellpadding="0" cellspacing="0" id="typo3-newRecord">
@@ -613,7 +613,7 @@ class SC_db_new {
                        return strnatcasecmp($this->tRows[$a]['title'], $this->tRows[$b]['title']);
                }
        }
-       
+
        /**
         * Ending page output and echo'ing content to browser.
         *
index cd4ebe0..cdd622b 100644 (file)
@@ -332,7 +332,7 @@ class SC_file_list {
                                        <div id="typo3-listOptions">
                                ';
 
-                                       // Add "display bigControlPanel" checkbox:      
+                                       // Add "display bigControlPanel" checkbox:
                                $pageContent.=t3lib_BEfunc::getFuncCheck($this->id, 'SET[bigControlPanel]', $this->MOD_SETTINGS['bigControlPanel'], 'file_list.php', '', 'id="bigControlPanel"') . '<label for="bigControlPanel"> ' .$LANG->getLL('bigControlPanel', 1) . '</label><br />';
 
                                        // Add "display thumbnails" checkbox:
index d1cffe3..3a51501 100644 (file)
@@ -199,7 +199,7 @@ class SC_file_upload {
 
                $form = $this->renderUploadForm();
 
-               $pageContent = 
+               $pageContent =
                        $this->doc->header($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:file_upload.php.pagetitle')) .
                        $this->doc->section('', $form);
 
index c2eb8c9..b361b24 100644 (file)
@@ -153,7 +153,7 @@ class SC_index {
                }
                $GLOBALS['LANG']->includeLLFile('EXT:lang/locallang_login.xml');
 
-                       // check if labels from $GLOBALS['TYPO3_CONF_VARS']['BE']['loginLabels'] were changed, 
+                       // check if labels from $GLOBALS['TYPO3_CONF_VARS']['BE']['loginLabels'] were changed,
                        // and merge them to $GLOBALS['LOCAL_LANG'] if needed
                $this->mergeOldLoginLabels();
 
@@ -549,7 +549,7 @@ class SC_index {
                        // Traverse news array IF there are records in it:
                if (is_array($GLOBALS['TYPO3_CONF_VARS']['BE']['loginNews']) && count($GLOBALS['TYPO3_CONF_VARS']['BE']['loginNews'])) {
 
-                               // get the main news template, and replace the subpart after looped through 
+                               // get the main news template, and replace the subpart after looped through
                        $newsContent      = t3lib_parsehtml::getSubpart($GLOBALS['TBE_TEMPLATE']->moduleTemplate, '###LOGIN_NEWS###');
                        $newsItemTemplate = t3lib_parsehtml::getSubpart($newsContent, '###NEWS_ITEM###');
 
@@ -671,7 +671,7 @@ class SC_index {
 
                                // Checks weather capslock is enabled (returns true if enabled, false otherwise)
                                // thanks to http://24ways.org/2007/capturing-caps-lock
-                               
+
                        function isCapslock(e) {
                                var ev = e ? e : window.event;
                                if (!ev) {
@@ -692,7 +692,7 @@ class SC_index {
                                } else if (ev.modifiers) {
                                        shift_status = !!(ev.modifiers & 4);
                                }
-                               return (((which >= 65 && which <= 90) && !shift_status) || 
+                               return (((which >= 65 && which <= 90) && !shift_status) ||
                                        ((which >= 97 && which <= 122) && shift_status));
                        }
 
index 9296179..f236694 100644 (file)
@@ -50,7 +50,7 @@ if ($temp_path = $TBE_MODULES['_PATHS'][$temp_M]) {
        $BACK_PATH = '';
        require($temp_path . 'index.php');
        $isDispatched = TRUE;
-} else {       
+} else {
        if (is_array($TBE_MODULES['_dispatcher'])) {
                foreach ($TBE_MODULES['_dispatcher'] as $dispatcherClassName) {
                        $dispatcher = t3lib_div::makeInstance($dispatcherClassName);
@@ -63,6 +63,6 @@ if ($temp_path = $TBE_MODULES['_PATHS'][$temp_M]) {
 }
 
 if ($isDispatched === FALSE) {
-       die('Value "' . htmlspecialchars($temp_M) . '" for "M" was not found as a module'); 
+       die('Value "' . htmlspecialchars($temp_M) . '" for "M" was not found as a module');
 }
 ?>
\ No newline at end of file
index f69e3e2..f5c29b2 100644 (file)
@@ -182,7 +182,7 @@ class wslib_gui {
                        $browse.= '<br />';
                }
                $browse.= '<br />';
-               
+
                $workspaceOverviewList = $this->displayWorkspaceOverview_list($pArray);
                if ($workspaceOverviewList || $this->alwaysDisplayHeader) {
                        // Make header of overview:
@@ -196,13 +196,13 @@ class wslib_gui {
                                        <td nowrap="nowrap">' . $LANG->getLL('label_publish') . '</td>
                                        <td><select name="_with_selected_do" onchange="if (confirm(\'' . $LANG->getLL('submit_apply_action_on_selected_elements') . '\')) {document.forms[0].submit();}">
                                                <option value="_">' . $LANG->getLL('label_doaction_default') . '</option>';
-                       
+
                        if ($this->publishAccess && !($GLOBALS['BE_USER']->workspaceRec['publish_access'] & 1)) {
                                $tableHeader .= '<option value="publish">' . $LANG->getLL('label_doaction_publish') . '</option>';
                                if ($GLOBALS['BE_USER']->workspaceSwapAccess()) {
                                        $tableHeader .= '<option value="swap">' . $LANG->getLL('label_doaction_swap') . '</option>';
                                }
-                       }                                               
+                       }
                        if ($GLOBALS['BE_USER']->workspace !== 0) {
                                $tableHeader .= '<option value="release">' . $LANG->getLL('label_doaction_release') . '</option>';
                        }
@@ -210,14 +210,14 @@ class wslib_gui {
                        $tableHeader .= $GLOBALS['BE_USER']->workspaceCheckStageForCurrent('0') ? '<option value="stage_0">' . $LANG->getLL('label_doaction_stage_editing') . '</option>' : '';
                        $tableHeader .= $GLOBALS['BE_USER']->workspaceCheckStageForCurrent('1') ? '<option value="stage_1">' . $LANG->getLL('label_doaction_stage_review') . '</option>' : '';
                        $tableHeader .= $GLOBALS['BE_USER']->workspaceCheckStageForCurrent('10') ? '<option value="stage_10">' . $LANG->getLL('label_doaction_stage_publish') . '</option>' : '';
-                       
+
                        $tableHeader .= '<option value="flush">' . $LANG->getLL('label_doaction_flush') . '</option>
                                        </select></td>
                                        <td>' . $LANG->getLL('label_lifecycle') . '</td>
                                        '.($this->showWorkspaceCol ? '<td>' . $LANG->getLL('label_workspace') . '</td>' : '').'
                                </tr>';
                        $tableRows[] = $tableHeader;
-                       
+
                        // Add lines from overview:
                        $tableRows = array_merge($tableRows, $workspaceOverviewList);
 
index 9b3d68e..8d1dff0 100644 (file)
@@ -270,7 +270,7 @@ class template {
 
        /**
         * Gets instance of PageRenderer
-        * 
+        *
         * @return      t3lib_PageRenderer
         */
        public function getPageRenderer() {
@@ -717,16 +717,16 @@ class template {
                $this->pageRenderer->setCharSet($this->charset);
                $this->pageRenderer->addMetaTag($this->generator());
                $this->pageRenderer->setTitle($title);
-               
+
                // add docstyles
                $this->docStyle();
 
 
                // add jsCode - has to go to headerData as it may contain the script tags already
                $this->pageRenderer->addHeaderData($this->JScode);
-               
+
                foreach ($this->JScodeArray as $name => $code) {
-                       $this->pageRenderer->addJsInlineCode($name, $code);     
+                       $this->pageRenderer->addJsInlineCode($name, $code);
                }
 
                if (count($this->JScodeLibArray)) {
@@ -747,7 +747,7 @@ class template {
                $this->JScodeArray = array();
 
                $this->endOfPageJsBlock = $this->pageRenderer->render(t3lib_PageRenderer::PART_FOOTER);
-               
+
                if ($this->docType=='xhtml_frames')     {
                        return $str;
                } else
@@ -2100,7 +2100,7 @@ class frontendDoc extends template {
                }
                if (count($this->JScodeArray)) {
                        foreach ($this->JScodeArray as $name => $code) {
-                               $pageRenderer->addJsInlineCode($name, $code);   
+                               $pageRenderer->addJsInlineCode($name, $code);
        }
 }
 
index f2e98a5..c3db3a6 100644 (file)
@@ -105,7 +105,7 @@ class SC_wizard_add {
                        // Init GPvars:
                $this->P = t3lib_div::_GP('P');
                $this->returnEditConf = t3lib_div::_GP('returnEditConf');
-               
+
                        // Get this record
                $origRow = t3lib_BEfunc::getRecord($this->P['table'],$this->P['uid']);
 
@@ -137,10 +137,10 @@ class SC_wizard_add {
 
                                        // ... and if everything seems OK we will register some classes for inclusion and instruct the object to perform processing later.
                                if ($this->P['params']['setValue'] && $cmd=='edit' && $this->id && $this->P['table'] && $this->P['field'] && $this->P['uid'])   {
-                                       
+
                                        if ($LiveRec=t3lib_BEfunc::getLiveVersionOfRecord($this->table, $this->id, 'uid'))      { $this->id=$LiveRec['uid'];}
-                                       
-                                       
+
+
                                        $this->include_once[]=PATH_t3lib.'class.t3lib_loaddbgroup.php';
                                        $this->include_once[]=PATH_t3lib.'class.t3lib_transferdata.php';
                                        $this->include_once[]=PATH_t3lib.'class.t3lib_tcemain.php';
@@ -176,7 +176,7 @@ class SC_wizard_add {
 
                                                // Setting the new field data:
                                        if ($this->P['flexFormPath'])   {       // If the field is a flexform field, work with the XML structure instead:
-                                               
+
                                                $currentFlexFormData = t3lib_div::xml2array($current[$this->P['field']]); // Current value of flexform path:
                                                $flexToolObj = t3lib_div::makeInstance('t3lib_flexformtools');
                                                $curValueOfFlexform = $flexToolObj->getArrayValueByPath($this->P['flexFormPath'], $currentFlexFormData);
@@ -220,7 +220,7 @@ class SC_wizard_add {
                                // Return to the parent alt_doc.php record editing session:
                        t3lib_div::redirect($this->P['returnUrl']);
                } else {
-                               // Redirecting to alt_doc.php with instructions to create a new record 
+                               // Redirecting to alt_doc.php with instructions to create a new record
                                // AND when closing to return back with information about that records ID etc.
                        $redirectUrl = 'alt_doc.php?returnUrl=' . rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI')) . '&returnEditConf=1&edit[' . $this->P['params']['table'] . '][' . $this->pid . ']=new';
                        t3lib_div::redirect($redirectUrl);