|
|
@@ -131,11 +131,15 @@ class Zend_Service_Twitter extends Zend_Rest_Client
|
|
|
public function __construct($options = null, Zend_Oauth_Consumer $consumer = null)
|
|
|
{
|
|
|
$this->setUri('http://api.twitter.com');
|
|
|
- if (!is_array($options)) $options = array();
|
|
|
- $options['siteUrl'] = self::OAUTH_BASE_URI;
|
|
|
if ($options instanceof Zend_Config) {
|
|
|
$options = $options->toArray();
|
|
|
}
|
|
|
+
|
|
|
+ if (!is_array($options)) {
|
|
|
+ $options = array();
|
|
|
+ }
|
|
|
+ $options['siteUrl'] = self::OAUTH_BASE_URI;
|
|
|
+
|
|
|
$this->_options = $options;
|
|
|
if (isset($options['username'])) {
|
|
|
$this->setUsername($options['username']);
|