IXR_Error is a class, not a function.

This commit is contained in:
Atom Long
2020-05-09 00:08:06 +08:00
parent 5ba2f03206
commit 029579be4d
+2 -2
View File
@@ -1669,7 +1669,7 @@ class Widget_XmlRpc extends Widget_Abstract_Contents implements Widget_Interface
$result = Widget_Upload::uploadHandle($data);
if (false === $result) {
return IXR_Error(500, _t('上传失败'));
return new IXR_Error(500, _t('上传失败'));
} else {
$insertId = $this->insert(array(
@@ -2169,7 +2169,7 @@ class Widget_XmlRpc extends Widget_Abstract_Contents implements Widget_Interface
return new IXR_Error(48, _t('PingBack已经存在'));
}
} else {
return IXR_Error(49, _t('目标地址禁止Ping'));
return new IXR_Error(49, _t('目标地址禁止Ping'));
}
} else {
return new IXR_Error(33, _t('这个目标地址不存在'));