diff --git a/lib/SmtpService.php b/lib/SmtpService.php index 085e2ef..bcc3b65 100644 --- a/lib/SmtpService.php +++ b/lib/SmtpService.php @@ -168,9 +168,9 @@ private function getWidget($table, $key, $val) { $className = 'Widget_Abstract_' . $table; $db = Typecho_Db::get(); - $widget = new $className(Typecho_Request::getInstance(), Typecho_Widget_Helper_Empty::getInstance()); + $widget = $className::alloc(); $db->fetchRow($widget->select()->where($key . ' = ?', $val)->limit(1), array($widget, 'push')); return $widget; } -} \ No newline at end of file +}