From: edward Date: Thu, 21 Jan 2016 06:40:46 +0000 (+0800) Subject: DataObjects/Images.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=84e3319f48e44768047985b4a4562289436d55ff DataObjects/Images.php --- diff --git a/DataObjects/Images.php b/DataObjects/Images.php index fa610d6d..3254227e 100644 --- a/DataObjects/Images.php +++ b/DataObjects/Images.php @@ -658,18 +658,18 @@ class Pman_Core_DataObjects_Images extends DB_DataObject return false; } - if (!empty($this->imgtype) && $this->imgtype[0] == '-' && !empty($this->onid)) { - $img = DB_DataObject::factory('Images'); - $img->onid = $this->onid; - $img->ontable = $this->ontable; - $img->imgtype = $this->imgtype; - - $img->find(); - while ($img->fetch()) { - $img->beforeDelete(); - $img->delete(); - } - } +// if (!empty($this->imgtype) && $this->imgtype[0] == '-' && !empty($this->onid)) { +// $img = DB_DataObject::factory('Images'); +// $img->onid = $this->onid; +// $img->ontable = $this->ontable; +// $img->imgtype = $this->imgtype; +// +// $img->find(); +// while ($img->fetch()) { +// $img->beforeDelete(); +// $img->delete(); +// } +// } require_once 'File/MimeType.php'; $y = new File_MimeType();