[BUGFIX] Pootle: Multi-line labels are not rendered properly
[Packages/TYPO3.CMS.git] / typo3 / show_rechis.php
old mode 100755 (executable)
new mode 100644 (file)
index 9d0a05e..e3fedb0
@@ -2,7 +2,7 @@
 /***************************************************************
 *  Copyright notice
 *
-*  (c) 1999-2005 Kasper Skaarhoj (kasperYYYY@typo3.com)
+*  (c) 1999-2011 Kasper Skårhøj (kasperYYYY@typo3.com)
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is
 /**
  * Shows information about a database or file item
  *
- * $Id$
- * Revised for TYPO3 3.6 November/2003 by Kasper Skaarhoj
+ * Revised for TYPO3 3.6 November/2003 by Kasper Skårhøj
  * XHTML Compliant
  *
- * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
- */
-/**
- * [CLASS/FUNCTION INDEX of SCRIPT]
- *
- *
- *
- *   76: class SC_show_rechis
- *   87:     function init()
- *  105:     function main()
- *  131:     function printContent()
- *
- * TOTAL FUNCTIONS: 3
- * (This index is automatically created/updated by the extension "extdeveval")
- *
+ * @author     Kasper Skårhøj <kasperYYYY@typo3.com>
  */
 
 
 $BACK_PATH='';
 require ($BACK_PATH.'init.php');
 require ($BACK_PATH.'template.php');
-require_once (PATH_t3lib.'class.t3lib_diff.php');
-require_once (PATH_t3lib.'class.t3lib_tcemain.php');
 $LANG->includeLLFile('EXT:lang/locallang_show_rechis.xml');
 require_once ('class.show_rechis.inc');
 
@@ -68,7 +51,7 @@ require_once ('class.show_rechis.inc');
 /**
  * Script Class for showing the history module of TYPO3s backend
  *
- * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
+ * @author     Kasper Skårhøj <kasperYYYY@typo3.com>
  * @package TYPO3
  * @subpackage core
  * @see class.show_rechis.inc
@@ -91,16 +74,14 @@ class SC_show_rechis {
         * @return      void
         */
        function init() {
-               global $LANG;
 
                        // Create internal template object:
                $this->doc = t3lib_div::makeInstance('template');
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
-               $this->doc->docType = 'xhtml_trans';
                $this->doc->setModuleTemplate('templates/show_rechis.html');
 
                        // Start the page header:
-               $this->content.=$this->doc->header($LANG->getLL('title'));
+               $this->content.=$this->doc->header($GLOBALS['LANG']->getLL('title'));
                $this->content.=$this->doc->spacer(5);
        }
 
@@ -110,7 +91,6 @@ class SC_show_rechis {
         * @return      void
         */
        function main() {
-               global $LANG;
 
                        // Start history object
                $historyObj = t3lib_div::makeInstance('recordHistory');
@@ -119,12 +99,12 @@ class SC_show_rechis {
                $this->content .= $historyObj->main();
 
                        // Setting up the buttons and markers for docheader
-               $docHeaderButtons = $this->getButtons();        
+               $docHeaderButtons = $this->getButtons();
                $markers['CONTENT'] = $this->content;
                $markers['CSH'] = $docHeaderButtons['csh'];
-               
+
                        // Build the <body> for the module
-               $this->content = $this->doc->startPage($LANG->getLL('title'));
+               $this->content = $this->doc->startPage($GLOBALS['LANG']->getLL('title'));
                $this->content.= $this->doc->moduleBody($this->pageinfo, $docHeaderButtons, $markers);
        }
 
@@ -139,45 +119,36 @@ class SC_show_rechis {
                $this->content = $this->doc->insertStylesAndJS($this->content);
                echo $this->content;
        }
-       
+
        /**
         * Create the panel of buttons for submitting the form or otherwise perform operations.
         *
         * @return      array   all available buttons as an assoc. array
         */
-       private function getButtons() {         
+       protected function getButtons() {
                $buttons = array(
                        'csh' => '',
-                       'back' => ''            
+                       'back' => ''
                );
 
-                       // CSH  
-               $buttons['csh'] = t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'history_log', $GLOBALS['BACK_PATH'], '');
+                       // CSH
+               $buttons['csh'] = t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'history_log', $GLOBALS['BACK_PATH'], '', TRUE);
 
                        // Start history object
                $historyObj = t3lib_div::makeInstance('recordHistory');
 
                if ($historyObj->returnUrl)     {
-                       $buttons['back']= '<a href="' . htmlspecialchars($historyObj->returnUrl) . '" class="typo3-goBack"><img' . t3lib_iconWorks::skinImg('', 'gfx/goback.gif') . ' alt="" title="' . $GLOBALS['LANG']->getLL('returnLink', 1) . '" /></a>';
+                       $buttons['back']= '<a href="' . htmlspecialchars($historyObj->returnUrl) . '" class="typo3-goBack">' . t3lib_iconWorks::getSpriteIcon('actions-view-go-back') . '</a>';
                }
-               
+
                return $buttons;
        }
 }
 
-// Include extension?
-if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/show_rechis.php'])  {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/show_rechis.php']);
-}
-
-
-
-
-
-
-
-
 
+if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['typo3/show_rechis.php'])) {
+       include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['typo3/show_rechis.php']);
+}
 
 
 
@@ -186,4 +157,5 @@ $SOBE = t3lib_div::makeInstance('SC_show_rechis');
 $SOBE->init();
 $SOBE->main();
 $SOBE->printContent();
-?>
+
+?>
\ No newline at end of file