Changeset 1270

Show
Ignore:
Timestamp:
12/31/2008 11:11:52 PM (4 years ago)
Author:
BrianKoontz
Message:

Added comma to list of mulipath separators. Refs #446

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/libs/Wakka.class.php

    r1251 r1270  
    48294829         * Build a (possibly valid) filepath from a delimited list of paths  
    48304830         * 
    4831          * This function takes a list of paths delimited by either ":" 
    4832          * (Unix-style) or ";" (Window-style) and attempts to construct a 
    4833          * fully-qualified pathname to a specific file.  By default, this 
    4834          * function checks to see if the file pointed to by the 
    4835          * fully-qualified pathname exists.  First valid match wins. 
    4836          * Disabling this feature will return the first valid constructed 
    4837          * path (i.e, a path containing a valid directory, but not 
    4838          * necessarily pointing to an existant file). 
     4831         * This function takes a list of paths delimited by ":" 
     4832         * (Unix-style), ";" (Window-style), or "," (Wikka-style)  and 
     4833         * attempts to construct a fully-qualified pathname to a specific 
     4834         * file.  By default, this function checks to see if the file 
     4835         * pointed to by the fully-qualified pathname exists.  First valid 
     4836         * match wins.  Disabling this feature will return the first valid 
     4837         * constructed path (i.e, a path containing a valid directory, but 
     4838         * not necessarily pointing to an existant file). 
    48394839         *  
    48404840         * @param string $filename mandatory: filename to be used in 
     
    48494849        function BuildFullpathFromMultipath($filename, $pathlist, $checkIfFileExists=TRUE) 
    48504850        { 
    4851                 $paths = preg_split('/;|:/', $pathlist); 
     4851                $paths = preg_split('/;|:|,/', $pathlist); 
    48524852                if(empty($paths[0])) return NULL; 
    48534853                if(FALSE === $checkIfFileExists) 
  • trunk/wikka.php

    r1226 r1270  
    273273         not a concatenation. 
    274274*/ 
    275  
    276 if(FALSE !== strpos(strtolower(PHP_OS), strtolower('windows'))) 
    277 { 
    278         define('PATH_DIVIDER', ';'); 
    279 } 
    280 else 
    281 { 
    282         define('PATH_DIVIDER', ':'); 
    283 } 
     275define('PATH_DIVIDER', ','); 
    284276 
    285277/**#@+