[geeklog-cvs] geeklog: Use PATH_SEPARATOR
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sun Sep 20 04:50:28 EDT 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/f4103435abc5
changeset: 7331:f4103435abc5
user: Dirk Haun <dirk at haun-online.de>
date: Sun Sep 20 10:02:48 2009 +0200
description:
Use PATH_SEPARATOR
diffstat:
system/classes/unpacker.class.php | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diffs (16 lines):
diff -r 036926b4e089 -r f4103435abc5 system/classes/unpacker.class.php
--- a/system/classes/unpacker.class.php Sun Sep 20 10:01:15 2009 +0200
+++ b/system/classes/unpacker.class.php Sun Sep 20 10:02:48 2009 +0200
@@ -80,11 +80,7 @@
function unpacker($file, $mime_type = null) {
// default directory separator
- if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) {
- $this->d_sep = '\\';
- } else {
- $this->d_sep = '/';
- }
+ $this->d_sep = PATH_SEPARATOR;
// if the file doesn't have it's path, assume local
if (! strstr($file, $this->d_sep)) {
More information about the geeklog-cvs
mailing list