mirror of
https://github.com/FriendsOfTYPO3/feedit.git
synced 2024-11-22 14:36:08 +01:00
[TASK] Make Backend Module URLs absolute
In the approach to remove all occurences of dealing with relative URL referencing in the TYPO3 Backend, the main mod.php calls are now always prefixed with "/{possiblesubfolder/}typo3/" so no backPath parameter and calculations are needed anymore. The patch thus removes all locations of the JavaScript variable "top.TS.PATH_typo3" containing the backpath and makes the "relative" path to BackendUtility::getModuleUrl() always a absolute prefix relative to the PATH_typo3 structure. Resolves: #66052 Releases: master Change-Id: Ie8192f227b8d1715be90efff8746482adf252ac7 Reviewed-on: http://review.typo3.org/38246 Reviewed-by: Markus Klein <klein.t3@reelworx.at> Tested-by: Markus Klein <klein.t3@reelworx.at> Reviewed-by: Georg Ringer <georg.ringer@gmail.com> Tested-by: Georg Ringer <georg.ringer@gmail.com> Reviewed-by: Benjamin Mack <benni@typo3.org> Tested-by: Benjamin Mack <benni@typo3.org>
This commit is contained in:
parent
bf7c27ede4
commit
58abaf0821
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ class FrontendEditPanel {
|
||||||
$iconImg = $conf['iconImg'] ? $conf['iconImg'] : '<img ' . IconUtility::skinImg(TYPO3_mainDir, 'gfx/edit_fe.gif', 'width="11" height="12" border="0" align="top" ') . ' title="' . htmlspecialchars($iconTitle, ENT_COMPAT, 'UTF-8', FALSE) . '"' . $style . ' class="frontEndEditIcons" alt="" />';
|
$iconImg = $conf['iconImg'] ? $conf['iconImg'] : '<img ' . IconUtility::skinImg(TYPO3_mainDir, 'gfx/edit_fe.gif', 'width="11" height="12" border="0" align="top" ') . ' title="' . htmlspecialchars($iconTitle, ENT_COMPAT, 'UTF-8', FALSE) . '"' . $style . ' class="frontEndEditIcons" alt="" />';
|
||||||
$nV = GeneralUtility::_GP('ADMCMD_view') ? 1 : 0;
|
$nV = GeneralUtility::_GP('ADMCMD_view') ? 1 : 0;
|
||||||
$adminURL = GeneralUtility::getIndpEnv('TYPO3_SITE_URL') . TYPO3_mainDir;
|
$adminURL = GeneralUtility::getIndpEnv('TYPO3_SITE_URL') . TYPO3_mainDir;
|
||||||
$icon = $this->editPanelLinkWrap_doWrap($iconImg, $adminURL . BackendUtility::getModuleUrl('record_edit', array('edit[' . $table . '][' . $editUid . ']' => 'edit', 'columnsOnly' => rawurlencode($fieldList), 'noView' => $nV)) . $addUrlParamStr);
|
$icon = $this->editPanelLinkWrap_doWrap($iconImg, $adminURL . BackendUtility::getModuleUrl('record_edit', array('edit[' . $table . '][' . $editUid . ']' => 'edit', 'columnsOnly' => $fieldList, 'noView' => $nV)) . $addUrlParamStr);
|
||||||
if ($conf['beforeLastTag'] < 0) {
|
if ($conf['beforeLastTag'] < 0) {
|
||||||
$content = $icon . $content;
|
$content = $icon . $content;
|
||||||
} elseif ($conf['beforeLastTag'] > 0) {
|
} elseif ($conf['beforeLastTag'] > 0) {
|
||||||
|
|
Loading…
Reference in a new issue