[geeklog-cvs] geeklog-1.3/system/classes upload.class.php,1.29,1.30
geeklog-cvs-admin at lists.geeklog.net
geeklog-cvs-admin at lists.geeklog.net
Sun Sep 7 13:41:42 EDT 2003
Update of /usr/cvs/geeklog/geeklog-1.3/system/classes
In directory geeklog_prod:/tmp/cvs-serv21556/system/classes
Modified Files:
upload.class.php
Log Message:
Fixes for image upload when (not) using GD lib ...
Index: upload.class.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/system/classes/upload.class.php,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** upload.class.php 5 Sep 2003 17:18:15 -0000 1.29
--- upload.class.php 7 Sep 2003 17:41:40 -0000 1.30
***************
*** 661,665 ****
$perms = $this->_getPermissions();
if (!empty($perms)) {
! $returnChmod = chmod ($this->_fileUploadDirectory . '/' . eregi_replace ("\.gif", ".png", $this->_getDestinationName ()), octdec ($perms));
}
--- 661,669 ----
$perms = $this->_getPermissions();
if (!empty($perms)) {
! if ($this->_imageLib == 'gdlib') {
! $returnChmod = chmod ($this->_fileUploadDirectory . '/' . eregi_replace ("\.gif", ".png", $this->_getDestinationName ()), octdec ($perms));
! } else {
! $returnChmod = chmod ($this->_fileUploadDirectory . '/' . $this->_getDestinationName (), octdec ($perms));
! }
}
More information about the geeklog-cvs
mailing list