Changeset 640


Ignore:
Timestamp:
06/03/09 22:12:18 (3 years ago)
Author:
jf.hovinne
Message:

Use wysiwyg_get_css(), instead of path_to_theme().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/apps/drupal/wysiwyg/editors/wymeditor.inc

    r639 r640  
    121121  if (isset($config['css_setting'])) { 
    122122    if ($config['css_setting'] == 'theme') { 
    123       $css = path_to_theme() .'/style.css'; 
    124       if (file_exists($css)) { 
    125         $settings['stylesheet'] = base_path() . $css; 
    126       } 
     123      // ATM WYMeditor only supports one CSS file (version 0.5) 
     124      // so we load the first one returned by wysiwyg_get_css() 
     125      $settings['stylesheet'] = reset(wysiwyg_get_css()); 
    127126    } 
    128127    else if ($config['css_setting'] == 'self' && isset($config['css_path'])) { 
Note: See TracChangeset for help on using the changeset viewer.