* [bug#69262,done,0.2h] fix bug.
This commit is contained in:
@@ -13280,6 +13280,16 @@ class upgradeModel extends model
|
||||
public function disableFeaturesByMode(): bool
|
||||
{
|
||||
if($this->config->systemMode != 'light') return true;
|
||||
if($this->config->edition == 'ipd')
|
||||
{
|
||||
$disabledFeatures = $this->dao->select('value')->from(TABLE_CONFIG)->where('`key`')->eq('disabledFeatures')->andWhere('owner')->eq('system')->fetch('value');
|
||||
if($disabledFeatures)
|
||||
{
|
||||
$disabledFeatures = str_replace(',waterfallplus', '', $disabledFeatures);
|
||||
$this->dao->update(TABLE_CONFIG)->set('value')->eq($disabledFeatures)->where('`key`')->eq('disabledFeatures')->andWhere('owner')->eq('system')->exec();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
$this->loadModel('custom')->disableFeaturesByMode('light');
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user