Commit 3beac52f authored by Wouter Wolters's avatar Wouter Wolters Committed by Tymoteusz Motylewski
Browse files

[TASK] Remove conf.php from ext:info

Resolves: #63610
Releases: master
Change-Id: I5eb82346151cb45efd38c870421141f58552308b
Reviewed-on: http://review.typo3.org/35074


Reviewed-by: default avatarMarkus Klein <klein.t3@reelworx.at>
Tested-by: default avatarMarkus Klein <klein.t3@reelworx.at>
Reviewed-by: Tymoteusz Motylewski's avatarTymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski's avatarTymoteusz Motylewski <t.motylewski@gmail.com>
parent 4ac9bcdb
......@@ -49,6 +49,13 @@ class InfoModuleController extends BaseScriptClass {
*/
protected $languageService;
/**
* The name of the module
*
* @var string
*/
protected $moduleName = 'web_info';
/**
* Constructor
*/
......@@ -57,7 +64,10 @@ class InfoModuleController extends BaseScriptClass {
$this->languageService->includeLLFile('EXT:lang/locallang_mod_web_info.xlf');
$this->backendUser = $GLOBALS['BE_USER'];
$this->backendUser->modAccess($GLOBALS['MCONF'], TRUE);
$this->MCONF = array(
'name' => $this->moduleName,
);
}
/**
......@@ -94,7 +104,7 @@ class InfoModuleController extends BaseScriptClass {
$this->doc->postCode = $this->doc->wrapScriptTags('if (top.fsMod) top.fsMod.recentIds["web"] = ' . (int)$this->id . ';');
// Setting up the context sensitive menu:
$this->doc->getContextMenuCode();
$this->doc->form = '<form action="' . htmlspecialchars(BackendUtility::getModuleUrl('web_info')) .
$this->doc->form = '<form action="' . htmlspecialchars(BackendUtility::getModuleUrl($this->moduleName)) .
'" method="post" name="webinfoForm">';
$vContent = $this->doc->getVersionSelector($this->id, 1);
if ($vContent) {
......@@ -163,7 +173,7 @@ class InfoModuleController extends BaseScriptClass {
if ($this->backendUser->mayMakeShortcut()) {
$buttons['shortcut'] = $this->doc->makeShortcutIcon(
'id, edit_record, pointer, new_unique_uid, search_field, search_levels, showLimit',
implode(',', array_keys($this->MOD_MENU)), $this->MCONF['name']);
implode(',', array_keys($this->MOD_MENU)), $this->moduleName);
}
return $buttons;
}
......
......@@ -6,6 +6,17 @@ if (TYPO3_MODE === 'BE') {
'web',
'info',
'',
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod1/'
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod1/',
array(
'script' => '_DISPATCH',
'access' => 'user,group',
'name' => 'web_info',
'labels' => array(
'tabs_images' => array(
'tab' => '../Resources/Public/Icons/module-info.png',
),
'll_ref' => 'LLL:EXT:lang/locallang_mod_web_info.xlf',
),
)
);
}
<?php
$MLANG['default']['tabs_images']['tab'] = '../Resources/Public/Icons/module-info.png';
$MLANG['default']['ll_ref'] = 'LLL:EXT:lang/locallang_mod_web_info.xlf';
$MCONF['script'] = '_DISPATCH';
$MCONF['access'] = 'user,group';
$MCONF['name'] = 'web_info';
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment