X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fomb.php;h=cd6d6e1b259162c4f76aa61ba473cbe8f2d23880;hb=2fc01dc7d150e138d2b70e34d8aa816781dfdd36;hp=b9d0eef64e6291e69e38d505590acd00a623f45c;hpb=4b2aa517501037e86e4a3c3bad3f363dcf8a26c6;p=quix0rs-gnu-social.git diff --git a/lib/omb.php b/lib/omb.php index b9d0eef64e..cd6d6e1b25 100644 --- a/lib/omb.php +++ b/lib/omb.php @@ -1,7 +1,7 @@ . */ -if (!defined('LACONICA')) { - exit(1); -} +if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } require_once INSTALLDIR.'/lib/oauthstore.php'; require_once 'OAuth.php'; @@ -52,7 +50,7 @@ function omb_oauth_datastore() { static $store = null; if (is_null($store)) { - $store = new LaconicaDataStore(); + $store = new StatusNetOAuthDataStore(); } return $store; } @@ -89,7 +87,7 @@ function omb_broadcast_notice($notice) common_debug('Posting to ' . $rp->postnoticeurl, __FILE__); /* Post notice. */ - $service = new Laconica_OMB_Service_Consumer( + $service = new StatusNet_OMB_Service_Consumer( array(OMB_ENDPOINT_POSTNOTICE => $rp->postnoticeurl)); try { $service->setToken($rp->token, $rp->secret); @@ -137,7 +135,7 @@ function omb_broadcast_profile($profile) common_debug('Posting to ' . $rp->updateprofileurl, __FILE__); /* Update profile. */ - $service = new Laconica_OMB_Service_Consumer( + $service = new StatusNet_OMB_Service_Consumer( array(OMB_ENDPOINT_UPDATEPROFILE => $rp->updateprofileurl)); try { $service->setToken($rp->token, $rp->secret); @@ -155,7 +153,7 @@ function omb_broadcast_profile($profile) return; } -class Laconica_OMB_Service_Consumer extends OMB_Service_Consumer { +class StatusNet_OMB_Service_Consumer extends OMB_Service_Consumer { public function __construct($urls) { $this->services = $urls;