if the file exists editor.css use theme BT#10982

ofaj
Alex Aragon 10 years ago
parent 1f3763e2c0
commit 270724d192
  1. 2
      main/inc/introductionSection.inc.php
  2. 7
      main/inc/lib/template.lib.php

@ -62,7 +62,7 @@ $config = array(
'Height' => '300'
);
$form->addHtmlEditor('intro_content', null, true, true, $config, true);
$form->addHtmlEditor('intro_content', null, false, false, $config, true);
$form->addButtonSave(get_lang('SaveIntroText'), 'intro_cmdUpdate');
/* INTRODUCTION MICRO MODULE - COMMANDS SECTION (IF ALLOWED) */

@ -585,6 +585,7 @@ class Template
{
global $disable_js_and_css_files;
// Base CSS
$css[] = api_get_cdn_path(api_get_path(WEB_CSS_PATH).'base.css');
if ($this->show_learnpath) {
@ -594,6 +595,12 @@ class Template
}
}
if (is_file(api_get_path(SYS_CSS_PATH).'themes/'.$this->theme.'/editor.css')) {
$css[] = api_get_path(WEB_CSS_PATH).'themes/'.$this->theme.'/editor.css';
}else{
$css[] = api_get_cdn_path(api_get_path(WEB_CSS_PATH).'editor.css');
}
$css[] = api_get_cdn_path(api_get_path(WEB_CSS_PATH).'themes/'.$this->theme.'/default.css');
$css_file_to_string = null;

Loading…
Cancel
Save