mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 07:22:11 +00:00
hook processConfig must return null, unless it changes the ext configuration
This commit is contained in:
parent
a05d94d3bb
commit
36d322f296
|
@ -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>');
|
||||
|
|
Loading…
Reference in New Issue
Block a user