Plugin Directory

Changeset 596259


Ignore:
Timestamp:
09/08/2012 11:26:57 AM (13 years ago)
Author:
ArnaudBan
Message:

Check if another plugin doesn't use the same library

File:
1 edited

Legend:

Unmodified
Added
Removed
  • widget-embed-lastest-tweets/trunk/widget-embed-latest-tweets.php

    r596258 r596259  
    304304
    305305//Files needed for the Twitter authentification
    306 require_once 'twitteroauth/OAuth.php';
    307 require_once 'twitteroauth/twitteroauth.php';
     306//Check if TwitterOAuth doesn't already existe
     307if( ! class_exists( 'TwitterOAuth' )){
     308
     309    require_once 'twitteroauth/twitteroauth.php';
     310
     311}
     312
    308313require_once 'welt-option.php';
Note: See TracChangeset for help on using the changeset viewer.