mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-01 12:48:08 +09:00
Update Admin.php
This commit is contained in:
1 parent
0a57a6ccb4
commit
acfa5504bd
1 file changed
+6
-2
@@ -18,7 +18,11 @@ class Admin extends \Api_Abstract
|
||||
{
|
||||
$mod = $this->di['mod']('wysiwyg');
|
||||
$config = $mod->getConfig();
|
||||
return $this->di['array_get']($config, 'editor', 'CKEditor');
|
||||
if (empty($this->di['array_get']($config, 'editor', 'CKEditor')) || !(defined($this->di['array_get']($config, 'editor', 'CKEditor')))) {
|
||||
return 'ckeditor';
|
||||
} else {
|
||||
return $this->di['array_get']($config, 'editor', 'CKEditor');
|
||||
}
|
||||
}
|
||||
|
||||
public function editors()
|
||||
@@ -27,4 +31,4 @@ class Admin extends \Api_Abstract
|
||||
'ckeditor' => 'CKEditor',
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user