mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 13:02:15 +09:00
Also hide dreditor from list of installed editor skins
This commit is contained in:
parent
824867259f
commit
c26ed92e66
2 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ class editorAdminView extends editor
|
||||||
|
|
||||||
$component_list = $oEditorModel->getComponentList(false, $site_srl, true);
|
$component_list = $oEditorModel->getComponentList(false, $site_srl, true);
|
||||||
$editor_skin_list = FileHandler::readDir(_XE_PATH_.'modules/editor/skins');
|
$editor_skin_list = FileHandler::readDir(_XE_PATH_.'modules/editor/skins');
|
||||||
$editor_skin_list = array_filter($editor_skin_list, function($name) { return !starts_with('xpresseditor', $name); });
|
$editor_skin_list = array_filter($editor_skin_list, function($name) { return !starts_with('xpresseditor', $name) && !starts_with('dreditor', $name); });
|
||||||
|
|
||||||
$skin_info = $oModuleModel->loadSkinInfo($this->module_path,$editor_config->editor_skin);
|
$skin_info = $oModuleModel->loadSkinInfo($this->module_path,$editor_config->editor_skin);
|
||||||
$comment_skin_info = $oModuleModel->loadSkinInfo($this->module_path,$editor_config->comment_editor_skin);
|
$comment_skin_info = $oModuleModel->loadSkinInfo($this->module_path,$editor_config->comment_editor_skin);
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ class editorView extends editor
|
||||||
$oModuleModel = getModel('module');
|
$oModuleModel = getModel('module');
|
||||||
// Get a list of editor skin
|
// Get a list of editor skin
|
||||||
$editor_skin_list = FileHandler::readDir(_XE_PATH_.'modules/editor/skins');
|
$editor_skin_list = FileHandler::readDir(_XE_PATH_.'modules/editor/skins');
|
||||||
$editor_skin_list = array_filter($editor_skin_list, function($name) { return !starts_with('xpresseditor', $name); });
|
$editor_skin_list = array_filter($editor_skin_list, function($name) { return !starts_with('xpresseditor', $name) && !starts_with('dreditor', $name); });
|
||||||
Context::set('editor_skin_list', $editor_skin_list);
|
Context::set('editor_skin_list', $editor_skin_list);
|
||||||
|
|
||||||
$skin_info = $oModuleModel->loadSkinInfo($this->module_path,$editor_config->editor_skin);
|
$skin_info = $oModuleModel->loadSkinInfo($this->module_path,$editor_config->editor_skin);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue