Changeset 1764

Show
Ignore:
Timestamp:
09/30/2008 04:57:20 PM (2 months ago)
Author:
driehle
Message:

Problem under UNIX platforms solved that was introduced by [1761].

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/scripts/settings.class.php

    r1763 r1764  
    461461    if(JLOG_ADMIN AND empty($this->d['jlog_admin_password'])) $this->d['jlog_admin_password'] = JLOG_ADMIN_PASSWORD; 
    462462 
    463     // erase last slashes 
    464     $this->d['jlog_path'] = trim($this->d['jlog_path'], '/'); 
    465     $this->d['jlog_basepath'] = trim($this->d['jlog_basepath'], '/'); 
     463    // remove slashes at the end of JLOG_PATH if present 
     464    $this->d['jlog_path'] = rtrim($this->d['jlog_path'], '/'); 
     465    // make shure JLOG_BASEPATH ends with a slash!! 
     466    $this->d['jlog_basepath'] = rtrim($this->d['jlog_basepath'], '/\\') . DIRECTORY_SEPARATOR; 
    466467 
    467468    // no quotes for bolean and numbers