[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tep-commits
Subject:    [TEP-COMMIT] CVS: admin/admin/includes/functions general.php,1.139,1.140
From:       Harald Ponce de Leon <hpdl () users ! sourceforge ! net>
Date:       2002-08-18 18:53:37
[Download RAW message or body]

Update of /cvsroot/tep/admin/admin/includes/functions
In directory usw-pr-cvs1:/tmp/cvs-serv3952

Modified Files:
	general.php 
Log Message:
remove the windows logic as unix style paths work fine under windows (forwardslashes \
instead of backslashes)

Index: general.php
===================================================================
RCS file: /cvsroot/tep/admin/admin/includes/functions/general.php,v
retrieving revision 1.139
retrieving revision 1.140
diff -u -d -r1.139 -r1.140
--- general.php	17 Aug 2002 12:56:55 -0000	1.139
+++ general.php	18 Aug 2002 18:53:35 -0000	1.140
@@ -776,11 +776,7 @@
 // the $filename parameter is an array with the following elements:
 // name, type, size, tmp_name
   function tep_copy_uploaded_file($filename, $target) {
-    if (strstr(PHP_OS, 'WIN')) {
-      if (substr($target, -1) != '\\') $target .= '\\';
-    } else {
-      if (substr($target, -1) != '/') $target .= '/';
-    }
+    if (substr($target, -1) != '/') $target .= '/';
 
     $target .= $filename['name'];
 
@@ -790,8 +786,6 @@
 // return a local directory path (without trailing slash)
   function tep_get_local_path($path) {
     if (substr($path, -1) == '/') $path = substr($path, 0, -1);
-
-    if (strstr(PHP_OS, 'WIN')) $path = str_replace('/', '\\', $path);
 
     return $path;
   }



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Tep-commits mailing list
Tep-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tep-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic