Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added missing oauth check to Twitter plugin

Phergie_Plugin_Twitter->onLoad() needs a check for the PECL oauth extension so it doesn't fatal if it's not loaded
  • Loading branch information...
commit 8d82bd718682d4555591734142cbaeaed2692481 1 parent a361d72
@elazar elazar authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 Phergie/Plugin/Twitter.php
View
4 Phergie/Plugin/Twitter.php
@@ -77,6 +77,10 @@ public function onConnect()
*/
public function onLoad()
{
+ if (!extension_loaded('oauth')) {
+ $this->fail('PECL oauth extension not installed');
+ }
+
$twitterClass = $this->getConfig('twitter.class', 'Twitter');
$this->setTwitter(
Please sign in to comment.
Something went wrong with that request. Please try again.