Changeset 5676 in subversion


Ignore:
Timestamp:
Jan 1, 2012 6:49:59 AM (18 months ago)
Author:
alec
Message:
  • Fix selecting jqueryui theme when the plugin isn't configured
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/jqueryui/jqueryui.php

    r4993 r5676  
    2525 
    2626    // include UI stylesheet 
    27     $skin = $rcmail->config->get('skin', 'default'); 
     27    $skin   = $rcmail->config->get('skin', 'default'); 
    2828    $ui_map = $rcmail->config->get('jquery_ui_skin_map', array()); 
    29     $ui_theme = $ui_map[$skin] ? $ui_map[$skin] : 'default'; 
     29    $ui_theme = $ui_map[$skin] ? $ui_map[$skin] : $skin; 
    3030 
    3131    if (file_exists($this->home . "/themes/$ui_theme/jquery-ui-$version.custom.css")) { 
     
    3737 
    3838    // jquery UI localization 
    39     $jquery_ui_i18n = $rcmail->config->get('jquery_ui_i18n', array()); 
     39    $jquery_ui_i18n = $rcmail->config->get('jquery_ui_i18n', array('datepicker')); 
    4040    if (count($jquery_ui_i18n) > 0) { 
    4141      $lang_l = str_replace('_', '-', substr($_SESSION['language'], 0, 5)); 
Note: See TracChangeset for help on using the changeset viewer.