[BUGFIX] tools_dbint needs to be called via mod.php 80/17980/2
authorPhilipp Gampe <philipp.gampe@typo3.org>
Sun, 3 Feb 2013 16:34:39 +0000 (17:34 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 3 Feb 2013 17:24:09 +0000 (18:24 +0100)
Fixes: #45112
Releases: 6.0, 6.1
Change-Id: I69b22d8d5fcb94e9b3cefcce600fd6b154de6c9d
Reviewed-on: https://review.typo3.org/17980
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/backend/Classes/Utility/BackendUtility.php
typo3/sysext/reports/Classes/Report/Status/ConfigurationStatus.php
typo3/sysext/sys_action/Classes/ActionTask.php

index 44c7049..6facb31 100644 (file)
@@ -3894,7 +3894,7 @@ class BackendUtility {
                        $registry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Registry');
                        $lastRefIndexUpdate = $registry->get('core', 'sys_refindex_lastUpdate');
                        if (!$count && $lastRefIndexUpdate) {
-                               $url = 'sysext/lowlevel/dbint/index.php?&id=0&SET[function]=refindex';
+                               $url =  \TYPO3\CMS\Backend\Utility\BackendUtility::getModuleUrl('tools_dbint') . '&id=0&SET[function]=refindex';
                                $warnings['backend_reference'] = sprintf($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:warning.backend_reference_index'), '<a href="' . $url . '">', '</a>', self::dateTime($lastRefIndexUpdate));
                        }
                        // Check for memcached if configured
index 135e5ba..9df6775 100644 (file)
@@ -93,7 +93,7 @@ class ConfigurationStatus implements \TYPO3\CMS\Reports\StatusProviderInterface
                if (!$count && $lastRefIndexUpdate) {
                        $value = $GLOBALS['LANG']->getLL('status_empty');
                        $severity = \TYPO3\CMS\Reports\Status::WARNING;
-                       $url = 'sysext/lowlevel/dbint/index.php?&id=0&SET[function]=refindex';
+                       $url =  \TYPO3\CMS\Backend\Utility\BackendUtility::getModuleUrl('tools_dbint') . '&id=0&SET[function]=refindex';
                        $message = sprintf($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:warning.backend_reference_index'), '<a href="' . $url . '">', '</a>', \TYPO3\CMS\Backend\Utility\BackendUtility::dateTime($lastRefIndexUpdate));
                }
                return \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Reports\\Status', $GLOBALS['LANG']->getLL('status_referenceIndex'), $value, $message, $severity);
index 887e39f..d58b0d8 100644 (file)
@@ -719,8 +719,13 @@ class ActionTask implements \TYPO3\CMS\Taskcenter\TaskInterface {
                                        if (!$queryIsEmpty) {
                                                $actionContent .= '<hr /> ' . $fullsearch->tableWrap($sql_query['qSelect']);
                                        }
-                                       $actionContent .= '<br /><a title="' . $GLOBALS['LANG']->getLL('action_editQuery') . '" href="' . $GLOBALS['BACK_PATH'] . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('lowlevel') . 'dbint/index.php?id=' . '&SET[function]=search' . '&SET[search]=query' . '&storeControl[STORE]=-' . $record['uid'] . '&storeControl[LOAD]=1' . '">
-                                               <img class="icon"' . \TYPO3\CMS\Backend\Utility\IconUtility::skinImg($GLOBALS['BACK_PATH'], 'gfx/edit2.gif') . ' alt="" />' . $GLOBALS['LANG']->getLL(($queryIsEmpty ? 'action_createQuery' : 'action_editQuery')) . '</a><br /><br />';
+                                       $actionContent .= '<br /><a title="' . $GLOBALS['LANG']->getLL('action_editQuery') . '" href="'
+                                               . \TYPO3\CMS\Backend\Utility\BackendUtility::getModuleUrl('tools_dbint')
+                                               . '&id=' . '&SET[function]=search' . '&SET[search]=query'
+                                               . '&storeControl[STORE]=-' . $record['uid'] . '&storeControl[LOAD]=1' . '">
+                                               <img class="icon"' . \TYPO3\CMS\Backend\Utility\IconUtility::skinImg($GLOBALS['BACK_PATH'],
+                                               'gfx/edit2.gif') . ' alt="" />' . $GLOBALS['LANG']->getLL(($queryIsEmpty ? 'action_createQuery'
+                                               : 'action_editQuery')) . '</a><br /><br />';
                                }
                                $content .= $this->taskObject->doc->section($GLOBALS['LANG']->getLL('action_t2_result'), $actionContent, 0, 1);
                        } else {
@@ -857,4 +862,4 @@ class ActionTask implements \TYPO3\CMS\Taskcenter\TaskInterface {
 }
 
 
-?>
\ No newline at end of file
+?>