pixmicat

Subversion Repositories:
Compare Path: Rev
With Path: Rev
/branches/ @ 787  →  /branches/ @ 788
/branches/totalsize_fix/lib/fileio/fileio.satellite.php
@@ -145,7 +145,7 @@
if(!$this->parameter[4] && substr($i, -5) == 's.jpg'){
@unlink($this->thumbLocalPath.$i);
}else{
if(!$this->_deleteSatellite($i)) return $size;
if(!$this->_deleteSatellite($i)) continue;
$this->IFS->delRecord($i);
}
$size += $size_perimg;
@@ -155,7 +155,7 @@
else{
$size = $this->getImageFilesize($imgname);
if(!$this->parameter[4] && substr($imgname, -5) == 's.jpg'){
return @unlink($this->thumbLocalPath.$imgname);
@unlink($this->thumbLocalPath.$imgname);
}else if($this->_deleteSatellite($imgname)){
$this->IFS->delRecord($imgname);
}else{
/branches/totalsize_fix/lib/fileio/fileio.normal.php
@@ -48,7 +48,7 @@
$size_perimg = $this->getImageFilesize($i);
// 刪除出現錯誤,實際上沒有刪到
if([email protected]($this->_getImagePhysicalPath($i))){
return $size;
continue;
}
$this->IFS->delRecord($i);
$size += $size_perimg;
/branches/totalsize_fix/lib/fileio/fileio.ftp.php
@@ -69,7 +69,7 @@
if(!$this->parameter[7] && substr($i, -5) == 's.jpg'){
@unlink($this->thumbLocalPath.$i);
}else{
if(!ftp_delete($this->conn, $i)) return $size;
if(!ftp_delete($this->conn, $i)) continue;
$this->IFS->delRecord($i); // 自索引中刪除
}
$size += $size_perimg;
/branches/totalsize_fix/lib/fileio/fileio.imageshack.php
@@ -120,7 +120,7 @@
$size_perimg = $rc['imgSize'];
$this->IFS->delRecord($i); // 自索引中刪除
}
else return $size; // 刪除失敗
else continue; // 刪除失敗
$size += $size_perimg;
}
return $size;