forked from GNUsocial/gnu-social
Some getStaticProperty calls to PEAR globalized
This commit is contained in:
@@ -85,6 +85,8 @@ class OpenidtrustAction extends Action
|
||||
|
||||
function handleSubmit()
|
||||
{
|
||||
global $_PEAR;
|
||||
|
||||
unset($_SESSION['openid_trust_root']);
|
||||
unset($_SESSION['openid_allow_url']);
|
||||
unset($_SESSION['openid_deny_url']);
|
||||
@@ -96,7 +98,7 @@ class OpenidtrustAction extends Action
|
||||
$user_openid_trustroot->trustroot = $this->trust_root;
|
||||
$user_openid_trustroot->created = common_sql_now();
|
||||
if (!$user_openid_trustroot->insert()) {
|
||||
$err = PEAR::getStaticProperty('DB_DataObject','lastError');
|
||||
$err = &$_PEAR->getStaticProperty('DB_DataObject','lastError');
|
||||
}
|
||||
common_redirect($this->allowUrl, $code=302);
|
||||
}else{
|
||||
|
@@ -85,6 +85,8 @@ function oid_get_last()
|
||||
|
||||
function oid_link_user($id, $canonical, $display)
|
||||
{
|
||||
global $_PEAR;
|
||||
|
||||
$oid = new User_openid();
|
||||
$oid->user_id = $id;
|
||||
$oid->canonical = $canonical;
|
||||
@@ -92,7 +94,7 @@ function oid_link_user($id, $canonical, $display)
|
||||
$oid->created = common_sql_now();
|
||||
|
||||
if (!$oid->insert()) {
|
||||
$err = PEAR::getStaticProperty('DB_DataObject','lastError');
|
||||
$err = &$_PEAR->getStaticProperty('DB_DataObject','lastError');
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user