diff --git a/Classes/BackendModule/SeoModule.php b/Classes/BackendModule/SeoModule.php index cde85ef..b9a1eee 100644 --- a/Classes/BackendModule/SeoModule.php +++ b/Classes/BackendModule/SeoModule.php @@ -60,7 +60,7 @@ class SeoModule extends \TYPO3\CMS\Backend\Module\AbstractFunctionModule { /** * @var array */ - protected $pathCaches = array(); + protected $pathData = array(); /** * Does some initial work for the page @@ -198,7 +198,7 @@ public function main() { $uidList = $GLOBALS['TYPO3_DB']->cleanIntList(implode(',', $pages)); $this->loadLanguageOverlays($uidList); if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('realurl')) { - $this->loadPathCache($uidList); + $this->loadPathData($uidList); } // Render information table @@ -272,7 +272,7 @@ protected function renderSEOTable($tree) { } // render main language (or specifically selected language) row - $item['pathcache'] = $this->pathCaches[$itemId][($this->langOnly ? $this->langOnly : 0)]; + $item['pathdata'] = $this->pathData[$itemId][($this->langOnly ? $this->langOnly : 0)]; // row title @@ -295,7 +295,7 @@ protected function renderSEOTable($tree) { if ($numRows > 1) { foreach ($translations as $langId => $item) { $item['sys_language'] = $langId; - $item['pathcache'] = $this->pathCaches[$itemId][$langId]; + $item['pathdata'] = $this->pathData[$itemId][$langId]; $tRows = $this->renderRowContent($item); // compile row foreach ($tRows as $singleRow) { @@ -341,7 +341,7 @@ protected function renderRowContent($item, $rowTitle = NULL) { $row2 = array(); if ($cmd != 'edit') { - $row1[] = $item['pathcache']; + $row1[] = $item['pathdata']; $row1[] = $item['tx_seo_titletag']; $row1[] = $item['keywords']; $row1[] = $item['description']; @@ -417,23 +417,23 @@ protected function loadLanguageOverlays($uidList) { * @param string $uidList The Page Uids * @return void */ - protected function loadPathCache($uidList) { + protected function loadPathData($uidList) { // building where clause $where = ($this->langOnly || $this->langOnly === 0 ? ' AND language_id = ' . $this->langOnly : ''); $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery( 'page_id, language_id, pagepath', - 'tx_realurl_pathcache', + 'tx_realurl_pathdata', 'page_id IN ('. $uidList .') ' . $where, '', 'language_id ASC, expire ASC' ); // Traverse result - $this->pathCaches = array(); + $this->pathData = array(); while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) { - $this->pathCaches[$row['page_id']][$row['language_id']] = $row['pagepath']; + $this->pathData[$row['page_id']][$row['language_id']] = $row['pagepath']; } } diff --git a/composer.json b/composer.json index 9d9d1ef..6876794 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ } }, "suggest": { - "realurl": "*", + "realurl": ">=2.1.5", "cooluri": "*" } } diff --git a/ext_emconf.php b/ext_emconf.php index f256c70..a6a86b6 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -20,7 +20,7 @@ 'conflicts' => array( ), 'suggests' => array( - 'realurl' => '0.0.0-0.0.0', + 'realurl' => '2.1.5-0.0.0', 'cooluri' => '0.0.0-0.0.0', ), ),