Commit 2b337af7 authored by Christoph Hofmann's avatar Christoph Hofmann

autoconf error fixed

parent 10839e70
......@@ -66,6 +66,7 @@ class tx_realurl_autoconfgen {
* @return void
*/
public function generateConfiguration() {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['enableDeprecationLog'] = 0;
$fileName = PATH_site . TX_REALURL_AUTOCONF_FILE;
$lockObject = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Locking\\Locker', $fileName, $GLOBALS['TYPO3_CONF_VARS']['SYS']['lockingMode']);
/** @var t3lib_lock $lockObject */
......@@ -79,7 +80,7 @@ class tx_realurl_autoconfgen {
$this->doGenerateConfiguration($fd);
}
fclose($fd);
t3lib_div::fixPermissions($fileName);
\TYPO3\CMS\Core\Utility\GeneralUtility::fixPermissions($fileName);
}
$lockObject->release();
}
......@@ -91,7 +92,7 @@ class tx_realurl_autoconfgen {
* @return void
*/
protected function doGenerateConfiguration(&$fd) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['enableDeprecationLog'] = 0;
if (!isset($GLOBALS['TYPO3_DB'])) {
if (!TYPO3_db) {
return;
......@@ -179,7 +180,7 @@ class tx_realurl_autoconfgen {
'adminJumpToBackend' => true,
'enableUrlDecodeCache' => true,
'enableUrlEncodeCache' => true,
'emptyUrlReturnValue' => t3lib_div::getIndpEnv('TYPO3_SITE_PATH')
'emptyUrlReturnValue' => \TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('TYPO3_SITE_PATH')
),
'pagePath' => array(
'type' => 'user',
......@@ -194,7 +195,7 @@ class tx_realurl_autoconfgen {
);
// Add print feature if TemplaVoila is not loaded
if (!t3lib_extMgm::isLoaded('templavoila')) {
if (!\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('templavoila')) {
$confTemplate['fileName']['index']['print'] = array(
'keyValues' => array(
'type' => 98,
......@@ -203,7 +204,7 @@ class tx_realurl_autoconfgen {
}
// Add respectSimulateStaticURLs if SimulateStatic is loaded
if(t3lib_extMgm::isLoaded('simulatestatic')) {
if(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('simulatestatic')) {
$confTemplate['init']['respectSimulateStaticURLs'] = true;
}
......@@ -216,7 +217,7 @@ class tx_realurl_autoconfgen {
'config' => $confTemplate,
'extKey' => $extKey
);
$var = t3lib_div::callUserFunction($userFunc, $params, $this);
$var = \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($userFunc, $params, $this);
if ($var) {
$confTemplate = $var;
}
......
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