hook processConfig must return null, unless it changes the ext configuration

This commit is contained in:
Uwe Steinmann 2024-09-25 13:34:56 +02:00
parent a05d94d3bb
commit 36d322f296

View File

@ -642,8 +642,11 @@ if(($kkk = $this->callHook('getFullSearchEngine')) && is_array($kkk))
echo '<a class="scrollto" data-target="#'.$extname.'">'.$extconf['title']."</a> ● ";
}
foreach($extmgr->getExtensionConfiguration() as $extname=>$extconf) {
if($this->hasHook('processConfig'))
$extconf = $this->callHook('processConfig', $extname, $extconf);
if($this->hasHook('processConfig')) {
$ttt = $this->callHook('processConfig', $extname, $extconf);
if($ttt)
$extconf = $ttt;
}
if($this->isVisible($extname.'|')) {
if($extconf['config']) {
$this->showRawConfigHeadline("<a id=\"".$extname."\" name=\"".$extname."\"></a>".'<input type="hidden" name="extensions['.$extname.'][__disable__]" value="'.(isset($settings->_extensions[$extname]["__disable__"]) && $settings->_extensions[$extname]["__disable__"] ? '1' : '').'" /><i class="fa fa-circle'.(isset($settings->_extensions[$extname]["__disable__"]) && $settings->_extensions[$extname]["__disable__"] ? ' disabled' : ' enabled').'"></i> <span title="'.$extname.'">'.$extconf['title'].'</span>');