Fixed bug #11129: Validation issue: End tag for "br" omitted, but OMITTAG NO was...
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / web_info / class.tx_cms_webinfo.php
index 53b838e..82c34f0 100644 (file)
@@ -2,7 +2,7 @@
 /***************************************************************
 *  Copyright notice
 *
-*  (c) 1999-2004 Kasper Skaarhoj (kasper@typo3.com)
+*  (c) 1999-2009 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 5/2003 by Kasper Skaarhoj
  *
- * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
  */
 /**
  * [CLASS/FUNCTION INDEX of SCRIPT]
@@ -42,7 +42,7 @@
  *  100:     function main()
  *
  *
- *  191: class tx_cms_webinfo_hits extends tx_cms_webinfo_page
+ *  198: class tx_cms_webinfo_hits extends tx_cms_webinfo_page
  *
  * TOTAL FUNCTIONS: 2
  * (This index is automatically created/updated by the extension "extdeveval")
@@ -59,7 +59,7 @@ require_once(PATH_t3lib.'class.t3lib_extobjbase.php');
 /**
  * Class for displaying page information (records, page record properties)
  *
- * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
  * @package TYPO3
  * @subpackage tx_cms
  */
@@ -101,6 +101,7 @@ class tx_cms_webinfo_page extends t3lib_extobjbase {
                global $BACK_PATH,$LANG,$SOBE;
 
                $dblist = t3lib_div::makeInstance('tx_cms_layout');
+               $dblist->descrTable = '_MOD_'.$GLOBALS['MCONF']['name'];
                $dblist->backPath = $BACK_PATH;
                $dblist->thumbs = 0;
                $dblist->script = 'index.php';
@@ -136,18 +137,24 @@ class tx_cms_webinfo_page extends t3lib_extobjbase {
                        $dblist->generateList();
 
 
-                       $theOutput.=$this->pObj->doc->section($LANG->getLL('hits_title'),
-                               $h_func.$header.$dblist->HTMLcode,
+                       $theOutput.= $this->pObj->doc->section($LANG->getLL('hits_title'),
+                               t3lib_BEfunc::cshItem($dblist->descrTable, 'stat', $GLOBALS['BACK_PATH'], '|<br />') . // CSH
+                                       $h_func.
+                                       $header.
+                                       $dblist->HTMLcode,
                                0,
                                1
                        );
                } else {
                        $h_func.= t3lib_BEfunc::getFuncMenu($this->pObj->id,'SET[pages]',$this->pObj->MOD_SETTINGS['pages'],$this->pObj->MOD_MENU['pages'],'index.php');
-
                        $dblist->start($this->pObj->id,'pages',0);
                        $dblist->generateList();
+
+                               // CSH
                        $theOutput.=$this->pObj->doc->section($LANG->getLL('page_title'),
-                               $h_func.$dblist->HTMLcode,
+                               t3lib_BEfunc::cshItem($dblist->descrTable, 'pagetree_overview', $GLOBALS['BACK_PATH'], '|<br />') . // CSH
+                                       $h_func.
+                                       $dblist->HTMLcode,
                                0,
                                1
                        );
@@ -184,7 +191,7 @@ class tx_cms_webinfo_page extends t3lib_extobjbase {
  * IMPORTANT: This class is used by the extension "sys_stat" and will be added to the Info module only when "sys_stat" is installed.
  * The display of statistics goes on in "tx_cms_webinfo_page" though
  *
- * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
  * @package TYPO3
  * @subpackage tx_cms
  */