Commit 45aa2a1b authored by Christoph Hofmann's avatar Christoph Hofmann

autogenconf fix for TYPO3 7 LTS

parent 7019b541
......@@ -96,7 +96,7 @@ class tx_realurl_autoconfgen {
if (!TYPO3_db) {
return;
}
$this->db = t3lib_div::makeInstance('t3lib_db');
$this->db = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('t3lib_db');
if (!$this->db->sql_pconnect(TYPO3_db_host, TYPO3_db_username, TYPO3_db_password) ||
!$this->db->sql_select_db(TYPO3_db)) {
// Cannot connect to database
......@@ -107,7 +107,7 @@ class tx_realurl_autoconfgen {
$this->db = &$GLOBALS['TYPO3_DB'];
}
$this->hasStaticInfoTables = t3lib_extMgm::isLoaded('static_info_tables');
$this->hasStaticInfoTables = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('static_info_tables');
$conf = array();
$template = $this->getTemplate();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment