set disable flag of extension

otherwise it will not be saved
This commit is contained in:
Uwe Steinmann 2020-01-14 08:32:05 +01:00
parent b59f906f27
commit daf08343e3

View File

@ -78,7 +78,7 @@ class SeedDMS_View_Settings extends SeedDMS_Bootstrap_Style {
*/ */
protected function showRawConfigHeadline($text) { /* {{{ */ protected function showRawConfigHeadline($text) { /* {{{ */
?> ?>
<tr><td><b><?= $text ?></b></td></tr> <tr><td colspan="2"><b><?= $text ?></b></td></tr>
<?php <?php
} /* }}} */ } /* }}} */
@ -481,7 +481,7 @@ $this->showStartPaneContent('site', (!$currenttab || $currenttab == 'site'));
if($this->hasHook('processConfig')) if($this->hasHook('processConfig'))
$extconf = $this->callHook('processConfig', $extname, $extconf); $extconf = $this->callHook('processConfig', $extname, $extconf);
if($extconf['config']) { if($extconf['config']) {
$this->showRawConfigHeadline("<a name=\"".$extname."\"></a>".$extconf['title']); $this->showRawConfigHeadline("<a name=\"".$extname."\"></a>".'<input type="hidden" name="extensions['.$extname.'][__disable__]" value="'.(isset($settings->_extensions[$extname]["__disable__"]) && $settings->_extensions[$extname]["__disable__"] ? '1' : '').'" />'.$extconf['title']);
foreach($extconf['config'] as $confkey=>$conf) { foreach($extconf['config'] as $confkey=>$conf) {
ob_start(); ob_start();
switch($conf['type']) { switch($conf['type']) {