StatusNet class renamed GNUsocial
also added backward compatible StatusNet class for the two calls I know third party plugins use, isHTTPS and getActivePlugins
This commit is contained in:
@@ -66,7 +66,7 @@ class DomainStatusNetworkPlugin extends Plugin
|
||||
}
|
||||
}
|
||||
|
||||
$nickname = StatusNet::currentSite();
|
||||
$nickname = GNUsocial::currentSite();
|
||||
|
||||
if (empty($nickname)) {
|
||||
$this->log(LOG_WARNING, "No current site");
|
||||
@@ -212,7 +212,7 @@ class DomainStatusNetworkPlugin extends Plugin
|
||||
return false;
|
||||
}
|
||||
|
||||
StatusNet::switchSite($sn->nickname);
|
||||
GNUsocial::switchSite($sn->nickname);
|
||||
|
||||
$user = User::getKV('email', $email);
|
||||
|
||||
@@ -242,7 +242,7 @@ class DomainStatusNetworkPlugin extends Plugin
|
||||
Status_network::$wildcard = $config['WILDCARD'];
|
||||
}
|
||||
|
||||
StatusNet::switchSite($sn->nickname);
|
||||
GNUsocial::switchSite($sn->nickname);
|
||||
|
||||
$confirm = EmailRegistrationPlugin::registerEmail($email);
|
||||
|
||||
@@ -259,7 +259,7 @@ class DomainStatusNetworkPlugin extends Plugin
|
||||
throw new ClientException(_("No such site."));
|
||||
}
|
||||
|
||||
StatusNet::switchSite($sn->nickname);
|
||||
GNUsocial::switchSite($sn->nickname);
|
||||
|
||||
$user = common_check_user($email, $password);
|
||||
|
||||
@@ -294,7 +294,7 @@ class DomainStatusNetworkPlugin extends Plugin
|
||||
throw new NoSuchUserException(array('email' => $email));
|
||||
}
|
||||
|
||||
StatusNet::switchSite($sn->nickname);
|
||||
GNUsocial::switchSite($sn->nickname);
|
||||
|
||||
$user = User::getKV('email', $email);
|
||||
|
||||
|
@@ -59,7 +59,7 @@ class GlobalApiAction extends Action
|
||||
|
||||
function prepare($args)
|
||||
{
|
||||
StatusNet::setApi(true); // reduce exception reports to aid in debugging
|
||||
GNUsocial::setApi(true); // reduce exception reports to aid in debugging
|
||||
|
||||
parent::prepare($args);
|
||||
|
||||
|
@@ -212,7 +212,7 @@ class DomainStatusNetworkInstaller extends Installer
|
||||
|
||||
Status_network::$wildcard = $config['WILDCARD'];
|
||||
|
||||
StatusNet::switchSite($this->nickname);
|
||||
GNUsocial::switchSite($this->nickname);
|
||||
|
||||
// We need to initialize the schema_version stuff to make later setup easier
|
||||
|
||||
|
Reference in New Issue
Block a user