[TASK] Use extPath for lowlevel readme 57/46957/3
authorBenni Mack <benni@typo3.org>
Mon, 29 Feb 2016 11:13:56 +0000 (12:13 +0100)
committerAndreas Wolf <andreas.wolf@typo3.org>
Thu, 3 Mar 2016 15:01:44 +0000 (16:01 +0100)
Resolves: #73739
Releases: master
Change-Id: Id18108657be38f075eaa5fc1ec9e73cd0e27d9db
Reviewed-on: https://review.typo3.org/46957
Reviewed-by: Timo Schmidt <timo-schmidt@gmx.net>
Tested-by: Timo Schmidt <timo-schmidt@gmx.net>
Reviewed-by: Andreas Wolf <andreas.wolf@typo3.org>
Tested-by: Andreas Wolf <andreas.wolf@typo3.org>
typo3/sysext/lowlevel/Classes/View/DatabaseIntegrityView.php
typo3/sysext/lowlevel/Resources/Private/Templates/Backend/ReferenceIndex.html

index e07b181..6d8be94 100644 (file)
@@ -25,6 +25,7 @@ use TYPO3\CMS\Core\Database\ReferenceIndex;
 use TYPO3\CMS\Core\Imaging\Icon;
 use TYPO3\CMS\Core\Imaging\IconFactory;
 use TYPO3\CMS\Core\Integrity\DatabaseIntegrityCheck;
+use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 use TYPO3\CMS\Fluid\View\StandaloneView;
 
@@ -312,6 +313,8 @@ class DatabaseIntegrityView extends BaseScriptClass
     public function func_refindex()
     {
         $this->view->assign('PATH_typo3', PATH_typo3);
+        $this->view->assign('ReadmeLink', ExtensionManagementUtility::extRelPath('lowlevel') . 'README.rst');
+        $this->view->assign('ReadmeLocation', ExtensionManagementUtility::extPath('lowlevel', 'README.rst'));
 
         if (GeneralUtility::_GP('_update') || GeneralUtility::_GP('_check')) {
             $testOnly = (bool)GeneralUtility::_GP('_check');
index 61a61d8..1b77d13 100644 (file)
 <h2>{f:translate(key:'checkScript_headline')}</h2>
 <p>{f:translate(key:'checkScript')}</p>
 
-<h3>{f:translate(key:'checkScript_check_description')}</h3><p>
-       <code>php {PATH_typo3}cli_dispatch.phpsh lowlevel_refindex -c</code></p>
+<h3>{f:translate(key:'checkScript_check_description')}</h3>
+<p>
+       <code>php {PATH_typo3}cli_dispatch.phpsh lowlevel_refindex -c</code>
+</p>
 
-<h3>{f:translate(key:'checkScript_update_description')}</h3><p>
-       <code>php {PATH_typo3}cli_dispatch.phpsh lowlevel_refindex -e</code></p>
+<h3>{f:translate(key:'checkScript_update_description')}</h3>
+<p>
+       <code>php {PATH_typo3}cli_dispatch.phpsh lowlevel_refindex -e</code>
+</p>
 
 <f:be.infobox state="-1" message="{f:translate(key:'checkScript_information')}" />
 
-<p>{f:translate(key:'checkScript_moreDetails')} <br>
-       <a href="sysext/lowlevel/README.rst" target="_new">{PATH_typo3}sysext/lowlevel/README.rst</a>
+<p>
+       {f:translate(key:'checkScript_moreDetails')}<br>
+       <a href="{ReadmeLink}" target="_new">{ReadmeLocation}</a>
 </p>