From 6f2e5b8413c486115686ddd0423d04675b9d8955 Mon Sep 17 00:00:00 2001 From: joyqi Date: Mon, 21 Oct 2013 22:25:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=8F=E8=BF=87=E6=88=91=E7=9A=84=E5=A4=9A?= =?UTF-8?q?=E6=96=B9=E7=A0=94=E7=A9=B6=EF=BC=8C=E4=BD=A0=E5=8F=AA=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E8=BF=99=E4=B8=AA=E6=8E=A5=E5=8F=A3=E5=8D=B3=E5=8F=AF?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E7=AC=AC=E4=B8=89=E6=96=B9=E5=AD=98=E5=82=A8?= =?UTF-8?q?=E5=92=8C=E6=9C=AC=E5=9C=B0=E5=AD=98=E5=82=A8=E7=9A=84=E6=97=A0?= =?UTF-8?q?=E7=BC=9D=E8=BD=AC=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- var/Widget/Upload.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/var/Widget/Upload.php b/var/Widget/Upload.php index 6b361703..950c0a50 100644 --- a/var/Widget/Upload.php +++ b/var/Widget/Upload.php @@ -280,6 +280,8 @@ class Widget_Upload extends Widget_Abstract_Contents implements Widget_Interface $result = self::uploadHandle($file); if (false !== $result) { + $this->pluginHandle()->beforeUpload($result); + $struct = array( 'title' => $result['name'], 'slug' => $result['name'], @@ -371,6 +373,8 @@ class Widget_Upload extends Widget_Abstract_Contents implements Widget_Interface $result = self::modifyHandle($this->row, $file); if (false !== $result) { + $this->pluginHandle()->beforeModify($result); + $this->update(array( 'text' => serialize($result) ), $this->db->sql()->where('cid = ?', $this->cid));