TwitterBridge PHP require_once paths now relative

This commit is contained in:
Mikael Nordfeldth 2014-08-06 09:29:47 +02:00
parent a9676f5b2b
commit 9933c00c4f
10 changed files with 10 additions and 10 deletions

View File

@ -30,7 +30,7 @@ if (!defined('STATUSNET')) {
exit(1); exit(1);
} }
require_once INSTALLDIR . '/plugins/TwitterBridge/twitter.php'; require_once __DIR__ . '/twitter.php';
/** /**
* Plugin for sending and importing Twitter statuses * Plugin for sending and importing Twitter statuses

View File

@ -32,7 +32,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
exit(1); exit(1);
} }
require_once INSTALLDIR . '/plugins/TwitterBridge/twitter.php'; require_once dirname(__DIR__) . '/twitter.php';
/** /**
* Class for doing OAuth authentication against Twitter * Class for doing OAuth authentication against Twitter

View File

@ -32,7 +32,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
exit(1); exit(1);
} }
require_once INSTALLDIR . '/plugins/TwitterBridge/twitter.php'; require_once dirname(__DIR__) . '/twitter.php';
/** /**
* Page for logging in with Twitter * Page for logging in with Twitter

View File

@ -31,7 +31,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
exit(1); exit(1);
} }
require_once INSTALLDIR . '/plugins/TwitterBridge/twitter.php'; require_once dirname(__DIR__) . '/twitter.php';
/** /**
* Settings for Twitter integration * Settings for Twitter integration

View File

@ -31,7 +31,7 @@ Batch script for synching local friends with Twitter friends.
END_OF_TRIM_HELP; END_OF_TRIM_HELP;
require_once INSTALLDIR . '/scripts/commandline.inc'; require_once INSTALLDIR . '/scripts/commandline.inc';
require_once INSTALLDIR . '/plugins/TwitterBridge/twitter.php'; require_once dirname(__DIR__) . '/twitter.php';
/** /**
* Daemon to sync local friends with Twitter friends * Daemon to sync local friends with Twitter friends

View File

@ -39,7 +39,7 @@ END_OF_TRIM_HELP;
require_once INSTALLDIR . '/scripts/commandline.inc'; require_once INSTALLDIR . '/scripts/commandline.inc';
require_once INSTALLDIR . '/lib/common.php'; require_once INSTALLDIR . '/lib/common.php';
require_once INSTALLDIR . '/lib/daemon.php'; require_once INSTALLDIR . '/lib/daemon.php';
require_once INSTALLDIR . '/plugins/TwitterBridge/twitter.php'; require_once dirname(__DIR__) . '/twitter.php';
/** /**
* Fetch statuses from Twitter * Fetch statuses from Twitter

View File

@ -19,7 +19,7 @@
if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); }
require_once INSTALLDIR . '/plugins/TwitterBridge/twitter.php'; require_once dirname(__DIR__) . '/twitter.php';
/** /**
* Queue handler to deal with incoming Twitter status updates, as retrieved by * Queue handler to deal with incoming Twitter status updates, as retrieved by

View File

@ -31,7 +31,7 @@ if (!defined('STATUSNET')) {
exit(1); exit(1);
} }
require_once INSTALLDIR . '/plugins/TwitterBridge/twitter.php'; require_once dirname(__DIR__) . '/twitter.php';
/** /**
* Encapsulation of the Twitter status -> notice incoming bridge import. * Encapsulation of the Twitter status -> notice incoming bridge import.

View File

@ -19,7 +19,7 @@
if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); }
require_once INSTALLDIR . '/plugins/TwitterBridge/twitter.php'; require_once dirname(__DIR__) . '/twitter.php';
class TwitterQueueHandler extends QueueHandler class TwitterQueueHandler extends QueueHandler
{ {

View File

@ -19,7 +19,7 @@
if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); }
require_once INSTALLDIR . '/plugins/TwitterBridge/twitter.php'; require_once __DIR__ . '/twitter.php';
/** /**
* Queue handler to deal with incoming Twitter status updates, as retrieved by * Queue handler to deal with incoming Twitter status updates, as retrieved by