Added the media field for page type "Shortcut" as well
[Packages/TYPO3.CMS.git] / typo3 / show_rechis.php
index 55e51a0..408febe 100755 (executable)
@@ -41,7 +41,7 @@
  *   76: class SC_show_rechis
  *   87:     function init()
  *  105:     function main()
- *  126:     function printContent()
+ *  131:     function printContent()
  *
  * TOTAL FUNCTIONS: 3
  * (This index is automatically created/updated by the extension "extdeveval")
@@ -77,6 +77,12 @@ class SC_show_rechis {
 
                // Internal:
        var $content;
+
+       /**
+        * Document template object
+        *
+        * @var mediumDoc
+        */
        var $doc;
 
        /**
@@ -108,13 +114,18 @@ class SC_show_rechis {
                        // Start history object
                $historyObj = t3lib_div::makeInstance('recordHistory');
 
+                       // Return link:
+               if ($historyObj->returnUrl)     {
+                       $this->content .= '<a href="'.htmlspecialchars($historyObj->returnUrl).'" class="typo3-goBack"><img'.t3lib_iconWorks::skinImg('','gfx/goback.gif','width="14" height="14"').' alt="" />'.$LANG->getLL('returnLink',1).'</a>';
+               }
+
                        // Get content:
-               $this->content.= $historyObj->main();
+               $this->content .= $historyObj->main();
 
                        // Return link:
                if ($historyObj->returnUrl)     {
                        $link = '<a href="'.htmlspecialchars($historyObj->returnUrl).'" class="typo3-goBack"><img'.t3lib_iconWorks::skinImg('','gfx/goback.gif','width="14" height="14"').' alt="" />'.$LANG->getLL('returnLink',1).'</a>';
-                       $this->content.= $this->doc->section($LANG->getLL('return'),$link,0,1);
+                       $this->content .= $this->doc->section($LANG->getLL('return'),$link,0,1);
                }
        }
 
@@ -125,7 +136,8 @@ class SC_show_rechis {
         */
        function printContent() {
                $this->content.=$this->doc->spacer(8);
-               $this->content.=$this->doc->endPage();
+               $this->content.= $this->doc->endPage();
+               $this->content = $this->doc->insertStylesAndJS($this->content);
                echo $this->content;
        }
 }