From 662fdbebad1a4a4052e2ad8a03461926cc14a8c4 Mon Sep 17 00:00:00 2001 From: Ioulia Kondratovitch Date: Thu, 17 May 2018 20:44:37 +0200 Subject: [PATCH] bugfix for compatibility with realurl 2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit reason: table “tx_realurl_pathcache” was renamed to “tx_realurl_pathdata” since version 2 of realurl --- Classes/BackendModule/SeoModule.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/BackendModule/SeoModule.php b/Classes/BackendModule/SeoModule.php index ffded40..c2b9b9a 100644 --- a/Classes/BackendModule/SeoModule.php +++ b/Classes/BackendModule/SeoModule.php @@ -33,6 +33,7 @@ use TYPO3\CMS\Core\Imaging\IconFactory; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Backend\Utility\BackendUtility; +use TYPO3\CMS\Core\Utility\ExtensionManagementUtility; /** * SEO Management module @@ -476,7 +477,7 @@ protected function loadPathCache($uidList) $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery( 'page_id, language_id, pagepath', - 'tx_realurl_pathcache', + version_compare(ExtensionManagementUtility::getExtensionVersion('realurl'), '2.0', '<') ? 'tx_realurl_pathcache' : 'tx_realurl_pathdata', 'page_id IN (' . $uidList . ') ' . $where, '', 'language_id ASC, expire ASC'