* Fix various non-functional issues
authorMichael Stucki <michael.stucki@typo3.org>
Mon, 25 Feb 2008 18:33:31 +0000 (18:33 +0000)
committerMichael Stucki <michael.stucki@typo3.org>
Mon, 25 Feb 2008 18:33:31 +0000 (18:33 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3285 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/config_default.php
typo3/alt_topmenu_dummy.php
typo3/browse_links.php
typo3/mod/tools/em/class.em_index.php
typo3/sysext/impexp/modfunc1/class.tx_impexp_modfunc1.php

index 281a374..6b8edbc 100755 (executable)
@@ -193,8 +193,8 @@ $TYPO3_CONF_VARS = Array(
        ),
        'FE' => Array(                  // Configuration for the TypoScript frontend (FE). Nothing here relates to the administration backend!
                'png_to_gif' => 0,                                              // Boolean. Enables conversion back to gif of all png-files generated in the frontend libraries. Notice that this leaves an increased number of temporary files in typo3temp/
-               'tidy' => 0,                                                    // Boolean. If set, the output html-code will be passed through 'tidy' which is a little program you can get from http://www.w3.org/People/Raggett/tidy/. 'Tidy' cleans the HTML-code for nice display!
-               'tidy_option' => 'cached',                              // options [all, cached, output]. 'all' = the content is always passed through 'tidy' before it may be stored in cache. 'cached' = only if the page is put into the cache, 'output' = only the output code just before it's echoed out.
+               'tidy' => 0,                                                    // Boolean. If set, the output html-code will be passed through "tidy" which is a little program you can get from http://www.w3.org/People/Raggett/tidy/. "Tidy" cleans the HTML-code for nice display!
+               'tidy_option' => 'cached',                              // options [all, cached, output]. "all" = the content is always passed through "tidy" before it may be stored in cache. "cached" = only if the page is put into the cache, "output" = only the output code just before it's echoed out.
                'tidy_path' => 'tidy -i --quiet true --tidy-mark true -wrap 0 -raw',            // Path with options for tidy. For XHTML output, add " --output-xhtml true"
                'logfile_dir' => '',                                    // Path where TYPO3 should write webserver-style logfiles to. This path must be write-enabled for the webserver. If this path is outside of PATH_site, you have to allow it using [BE][lockRootPath]
                'publish_dir' => '',                                    // Path where TYPO3 should write staticly published documents. This path must be write-enabled for the webserver. Remember slash AFTER! Eg: 'publish/' or '/www/htdocs/publish/'. See admPanel option 'publish'
index 743e529..4095031 100755 (executable)
@@ -95,7 +95,7 @@ class SC_alt_topmenu_dummy {
                                        $tempContent = $hookObj->fetchContentTopmenu_processContent($this);
 
                                                // Placement priority handling.
-                                       if (is_int($hookObj->priority) and ($hookObj->priority>=1 and $hookObj->priority<=9))   {
+                                       if (is_int($hookObj->priority) && ($hookObj->priority>=1 && $hookObj->priority<=9)) {
                                                $priority = $hookObj->priority;
                                        } else $priority = 5;
 
index e0c7302..0b79ca7 100755 (executable)
@@ -142,9 +142,9 @@ class SC_browse_links {
                if (is_array ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/browse_links.php']['browserRendering'])) {
                        foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/browse_links.php']['browserRendering'] as $classRef) {
                                $browserRenderObj = t3lib_div::getUserObj($classRef);
-                               if(is_object($browserRenderObj) && method_exists($browserRenderObj, 'isValid') && method_exists($browserRenderObj, 'render'))   {
+                               if (is_object($browserRenderObj) && method_exists($browserRenderObj, 'isValid') && method_exists($browserRenderObj, 'render')) {
                                        if ($browserRenderObj->isValid($this->mode, $this)) {
-                                               $this->content .=  $browserRenderObj->render($this->mode, $this);
+                                               $this->content.= $browserRenderObj->render($this->mode, $this);
                                                $browserRendered = true;
                                                break;
                                        }
index c81ee26..ba9dc7e 100644 (file)
@@ -1535,7 +1535,9 @@ EXTENSION KEYS:
                                $mirror = $this->getMirrorURL();
                                $extfile = $mirror.'extensions.xml.gz';
                                $extmd5 = t3lib_div::getURL($mirror.'extensions.md5');
-                               if(is_file(PATH_site.'typo3temp/extensions.xml.gz')) $localmd5 = md5_file(PATH_site.'typo3temp/extensions.xml.gz');
+                               if (is_file(PATH_site.'typo3temp/extensions.xml.gz')) {
+                                       $localmd5 = md5_file(PATH_site.'typo3temp/extensions.xml.gz');
+                               }
 
                                if($extmd5 === false) {
                                        $content .= '<p>Error: The extension MD5 sum could not be fetched from '.$mirror.'extensions.md5. Possible reasons: network problems, allow_url_fopen is off, curl is not enabled in Install tool.</p>';
index 5d750e8..0b91e6e 100755 (executable)
@@ -62,7 +62,6 @@ t3lib_extMgm::isLoaded('impexp',1);
  */
 class tx_impexp_modfunc1 extends mod_user_task {
 
-
        /**
         * Create preset overview for task center overview.
         *
@@ -106,7 +105,7 @@ class tx_impexp_modfunc1 extends mod_user_task {
         *
         * @return      string          HTML content.
         */
-    function main()    {
+       function main() {
                        if($id = t3lib_div::_GP('display')) {
                                return $this->urlInIframe($this->backPath.t3lib_extMgm::extRelPath('impexp').'app/index.php?tx_impexp[action]=export&preset[load]=1&preset[select]='.$id,1);
                        } else {
@@ -159,11 +158,11 @@ class tx_impexp_modfunc1 extends mod_user_task {
                        }
 
                        // Output:
-        $theOutput.= $this->pObj->doc->spacer(5);
-        $theOutput.= $this->pObj->doc->section('Export presets',$content,0,1);
+               $theOutput.= $this->pObj->doc->spacer(5);
+               $theOutput.= $this->pObj->doc->section('Export presets',$content,0,1);
 
-        return $theOutput;
-    }
+               return $theOutput;
+       }