[TASK] Merge submodule version into core
[Packages/TYPO3.CMS.git] / typo3 / sysext / adodb / ext_localconf.php
index cf697e9..6991012 100644 (file)
@@ -1,13 +1,12 @@
 <?php
-if (!defined ('TYPO3_MODE'))   die ('Access denied.');
-
-require_once (t3lib_extMgm::extPath('adodb').'class.tx_adodb_tceforms.php');
-
-       // Register as a data source application if the extension datasources is loaded:
-if (t3lib_extMgm::isLoaded ('datasources')) {
-       require_once (t3lib_extMgm::extPath('datasources').'class.tx_datasources_main.php');
-       $dataSourcesMainObj = &t3lib_div::getUserObj('EXT:datasources/class.tx_datasources_main.php:&tx_datasources_main');
-       $dataSourcesMainObj->registerApplication ('ADOdb', 'adodb');
+if (!defined('TYPO3_MODE')) {
+       die('Access denied.');
 }
 
-?>
\ No newline at end of file
+// Register as a data source application if the extension datasources is loaded:
+if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('datasources')) {
+       require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('datasources') . 'class.tx_datasources_main.php';
+       $dataSourcesMainObj = \TYPO3\CMS\Core\Utility\GeneralUtility::getUserObj('EXT:datasources/class.tx_datasources_main.php:&tx_datasources_main');
+       $dataSourcesMainObj->registerApplication('ADOdb', 'adodb');
+}
+?>