From: Mikael Nordfeldth Date: Wed, 6 Aug 2014 07:29:47 +0000 (+0200) Subject: TwitterBridge PHP require_once paths now relative X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9933c00c4f2cb19f06d7a1e10e0546c4a26c61a7;p=quix0rs-gnu-social.git TwitterBridge PHP require_once paths now relative --- diff --git a/plugins/TwitterBridge/TwitterBridgePlugin.php b/plugins/TwitterBridge/TwitterBridgePlugin.php index 3284d10563..8d14744090 100644 --- a/plugins/TwitterBridge/TwitterBridgePlugin.php +++ b/plugins/TwitterBridge/TwitterBridgePlugin.php @@ -30,7 +30,7 @@ if (!defined('STATUSNET')) { exit(1); } -require_once INSTALLDIR . '/plugins/TwitterBridge/twitter.php'; +require_once __DIR__ . '/twitter.php'; /** * Plugin for sending and importing Twitter statuses diff --git a/plugins/TwitterBridge/actions/twitterauthorization.php b/plugins/TwitterBridge/actions/twitterauthorization.php index aace7e4f09..ce6af091e2 100644 --- a/plugins/TwitterBridge/actions/twitterauthorization.php +++ b/plugins/TwitterBridge/actions/twitterauthorization.php @@ -32,7 +32,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } -require_once INSTALLDIR . '/plugins/TwitterBridge/twitter.php'; +require_once dirname(__DIR__) . '/twitter.php'; /** * Class for doing OAuth authentication against Twitter diff --git a/plugins/TwitterBridge/actions/twitterlogin.php b/plugins/TwitterBridge/actions/twitterlogin.php index 379e136045..ee00714c9f 100644 --- a/plugins/TwitterBridge/actions/twitterlogin.php +++ b/plugins/TwitterBridge/actions/twitterlogin.php @@ -32,7 +32,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } -require_once INSTALLDIR . '/plugins/TwitterBridge/twitter.php'; +require_once dirname(__DIR__) . '/twitter.php'; /** * Page for logging in with Twitter diff --git a/plugins/TwitterBridge/actions/twittersettings.php b/plugins/TwitterBridge/actions/twittersettings.php index cc3e34f345..37abb4d272 100644 --- a/plugins/TwitterBridge/actions/twittersettings.php +++ b/plugins/TwitterBridge/actions/twittersettings.php @@ -31,7 +31,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } -require_once INSTALLDIR . '/plugins/TwitterBridge/twitter.php'; +require_once dirname(__DIR__) . '/twitter.php'; /** * Settings for Twitter integration diff --git a/plugins/TwitterBridge/daemons/synctwitterfriends.php b/plugins/TwitterBridge/daemons/synctwitterfriends.php index 651c4d34da..8b8ffbfd49 100755 --- a/plugins/TwitterBridge/daemons/synctwitterfriends.php +++ b/plugins/TwitterBridge/daemons/synctwitterfriends.php @@ -31,7 +31,7 @@ Batch script for synching local friends with Twitter friends. END_OF_TRIM_HELP; 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 diff --git a/plugins/TwitterBridge/daemons/twitterstatusfetcher.php b/plugins/TwitterBridge/daemons/twitterstatusfetcher.php index b4b78dc80a..74fc77cd79 100755 --- a/plugins/TwitterBridge/daemons/twitterstatusfetcher.php +++ b/plugins/TwitterBridge/daemons/twitterstatusfetcher.php @@ -39,7 +39,7 @@ END_OF_TRIM_HELP; require_once INSTALLDIR . '/scripts/commandline.inc'; require_once INSTALLDIR . '/lib/common.php'; require_once INSTALLDIR . '/lib/daemon.php'; -require_once INSTALLDIR . '/plugins/TwitterBridge/twitter.php'; +require_once dirname(__DIR__) . '/twitter.php'; /** * Fetch statuses from Twitter diff --git a/plugins/TwitterBridge/lib/tweetinqueuehandler.php b/plugins/TwitterBridge/lib/tweetinqueuehandler.php index 0ab7480305..cc0c05f9a6 100644 --- a/plugins/TwitterBridge/lib/tweetinqueuehandler.php +++ b/plugins/TwitterBridge/lib/tweetinqueuehandler.php @@ -19,7 +19,7 @@ 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 diff --git a/plugins/TwitterBridge/lib/twitterimport.php b/plugins/TwitterBridge/lib/twitterimport.php index 41d8ac9d46..5258bfc2c9 100644 --- a/plugins/TwitterBridge/lib/twitterimport.php +++ b/plugins/TwitterBridge/lib/twitterimport.php @@ -31,7 +31,7 @@ if (!defined('STATUSNET')) { exit(1); } -require_once INSTALLDIR . '/plugins/TwitterBridge/twitter.php'; +require_once dirname(__DIR__) . '/twitter.php'; /** * Encapsulation of the Twitter status -> notice incoming bridge import. diff --git a/plugins/TwitterBridge/lib/twitterqueuehandler.php b/plugins/TwitterBridge/lib/twitterqueuehandler.php index 644ce17871..bba1b8b2bc 100644 --- a/plugins/TwitterBridge/lib/twitterqueuehandler.php +++ b/plugins/TwitterBridge/lib/twitterqueuehandler.php @@ -19,7 +19,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } -require_once INSTALLDIR . '/plugins/TwitterBridge/twitter.php'; +require_once dirname(__DIR__) . '/twitter.php'; class TwitterQueueHandler extends QueueHandler { diff --git a/plugins/TwitterBridge/tweetctlqueuehandler.php b/plugins/TwitterBridge/tweetctlqueuehandler.php index 4c8bef463e..d7636c373e 100644 --- a/plugins/TwitterBridge/tweetctlqueuehandler.php +++ b/plugins/TwitterBridge/tweetctlqueuehandler.php @@ -19,7 +19,7 @@ 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