cvs: smarty /libs/core core.create_dir_structure.php

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1070269761@cvsserver>
messju		Mon Dec  1 04:09:21 2003 EDT

  Modified files:              
    /smarty/libs/core	core.create_dir_structure.php 
  Log:
  fix root-dir-handling on windows filepath
  
  
Index: smarty/libs/core/core.create_dir_structure.php
diff -u smarty/libs/core/core.create_dir_structure.php:1.6 smarty/libs/core/core.create_dir_structure.php:1.7
--- smarty/libs/core/core.create_dir_structure.php:1.6	Thu Oct 23 03:50:55 2003
+++ smarty/libs/core/core.create_dir_structure.php	Mon Dec  1 04:09:20 2003
@@ -31,7 +31,7 @@
             /* other-style paths */
             $_dir = str_replace('\\','/', $params['dir']);
             $_dir_parts = preg_split('!/+!', $_dir, -1, PREG_SPLIT_NO_EMPTY);
-            if (preg_match('!^((//)|([a-zA-Z]:/))!', $_dir, $_root_dir)) {
+            if (preg_match('!^((/)|([a-zA-Z]:/))!', $_dir, $_root_dir)) {
                 /* leading "//" for network volume, or "[letter]:/" for full path */
                 $_new_dir = $_root_dir[1];
                 /* remove drive-letter from _dir_parts */

-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.