Cleanup: Created ChangeLog entry for TYPO3_4-3 branch
[Packages/TYPO3.CMS.git] / typo3 / db_list.php
index 58414bf..2d866b9 100644 (file)
@@ -62,11 +62,6 @@ require ('mod/web/list/conf.php');
 require ('init.php');
 require ('template.php');
 $LANG->includeLLFile('EXT:lang/locallang_mod_web_list.xml');
-require_once (PATH_t3lib.'class.t3lib_page.php');
-require_once (PATH_t3lib.'class.t3lib_pagetree.php');
-require_once (PATH_t3lib.'class.t3lib_recordlist.php');
-require_once (PATH_t3lib.'class.t3lib_clipboard.php');
-require_once (PATH_t3lib.'class.t3lib_parsehtml.php');
 require_once ($BACK_PATH.'class.db_list.inc');
 require_once ($BACK_PATH.'class.db_list_extra.inc');
 $BE_USER->modAccess($MCONF,1);
@@ -232,6 +227,7 @@ class SC_db_list {
                $dblist->pageRow = $this->pageinfo;
                $dblist->counter++;
                $dblist->MOD_MENU = array('bigControlPanel' => '', 'clipBoard' => '', 'localization' => '');
+               $dblist->modTSconfig = $this->modTSconfig;
 
                        // Clipboard is initialized:
                $dblist->clipObj = t3lib_div::makeInstance('t3lib_clipboard');          // Start clipboard
@@ -288,7 +284,9 @@ class SC_db_list {
                        $dblist->setDispFields();
 
                                // Render versioning selector:
-                       $dblist->HTMLcode.= $this->doc->getVersionSelector($this->id);
+                       if (t3lib_extMgm::isLoaded('version')) {
+                               $dblist->HTMLcode .= $this->doc->getVersionSelector($this->id);
+                       }
 
                                // Render the list of tables:
                        $dblist->generateList();