bryantAXS / TGL_Twitter

EE Add-on that uses oAuth to display Twitter Feed
11 stars 8 forks source link

Incompatibility with NSM Twitter #8

Open aboutwout opened 11 years ago

aboutwout commented 11 years ago

Hi,

When you install this module it has some incompatibilities with NSM Twitter, such as a duplicate OAuth class and some weird things when saving the module settings.

The duplicate OAuth is easy to get around by checking if the class is already declared before including it:

if ( ! class_exists('OAuthConsumer'))
{
  require_once PATH_THIRD . 'tgl_twitter/classes/twitteroauth.php';
}

When saving the module settings it is also trying to insert some settings from nsm_twitter. So a check on which settings are relevant to TGL_Twitter might not be a bad idea.

It also looks like NSM twitter is using a different version of the OAuth library.

– Wouter