Show
Ignore:
Timestamp:
11/01/06 23:41:45 (2 years ago)
Author:
dominik
Message:

Add normalizePath to AgaviToolkit? and use it in the config handlers

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/util/AgaviToolkit.class.php

    r1180 r1207  
    5353 
    5454    return false; 
     55  } 
     56 
     57  /** 
     58   * Normalizes a path to contain only '/' as path delimiter. 
     59   * 
     60   * @param      string The path to normalize. 
     61   * 
     62   * @return     string The unified bool The mkdir return value. 
     63   * 
     64   * @author     Dominik del Bondio <ddb@bitxtender.com> 
     65   * @since      0.11.0 
     66   */ 
     67  public static function normalizePath($path) 
     68  { 
     69    return str_replace('\\', '/', $path); 
    5570  } 
    5671