mirror of
https://github.com/typecho/typecho.git
synced 2025-02-26 07:33:03 +01:00
fix plugin helper
This commit is contained in:
parent
abcecb124d
commit
5f3620e058
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user