Changeset 4230651 in github for program/include/rcube_config.php


Ignore:
Timestamp:
Jun 18, 2008 3:13:04 AM (5 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
9f6adf9
Parents:
1fb78c57
Message:

Add fallback to old 'skin_path' property + indent with spaces instead of tabs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_config.php

    r67effe9 r4230651  
    6161    $this->load_host_config(); 
    6262 
     63    // set skin (with fallback to old 'skin_path' property) 
     64    if (empty($this->prop['skin']) && !empty($this->prop['skin_path'])) 
     65      $this->prop['skin'] = str_replace('skins/', '', unslashify($this->prop['skin_path'])); 
     66    else if (empty($this->prop['skin'])) 
     67      $this->prop['skin'] = 'default'; 
     68 
    6369    // fix paths 
    64     $this->prop['skin'] = $this->prop['skin'] ? unslashify($this->prop['skin']) : 'default'; 
    6570    $this->prop['log_dir'] = $this->prop['log_dir'] ? unslashify($this->prop['log_dir']) : INSTALL_PATH . 'logs'; 
     71    $this->prop['temp_dir'] = $this->prop['temp_dir'] ? unslashify($this->prop['temp_dir']) : INSTALL_PATH . 'temp'; 
    6672     
    6773    // handle aliases 
Note: See TracChangeset for help on using the changeset viewer.