fix plugin helper

This commit is contained in:
joyqi 2017-11-15 11:43:32 +08:00
parent abcecb124d
commit 5f3620e058

View File

@ -54,7 +54,7 @@ class Helper
$className = "Widget_Abstract_{$table}";
$key = $keys[$table];
$db = Typecho_Db::get();
$widget = new $className;
$widget = new $className(Typecho_Request::getInstance(), Typecho_Widget_Helper_Empty::getInstance());
$db->fetchRow(
$widget->select()->where("{$key} = ?", $pkId)->limit(1),