aboutsummaryrefslogtreecommitdiff
path: root/mod/oauth_lib/start.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-05 04:24:25 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-05 04:24:25 +0000
commitb5593cfaf0d560afe1f15ddb6b73507ccd75f896 (patch)
treefdd448b64743af8870ec87bd47a95bd1b9304465 /mod/oauth_lib/start.php
parent6bf4fabc33541ef7b924c2904f3892b73c6b6a20 (diff)
downloadelgg-b5593cfaf0d560afe1f15ddb6b73507ccd75f896.tar.gz
elgg-b5593cfaf0d560afe1f15ddb6b73507ccd75f896.tar.bz2
Fixes #2764. Corrected plugin path for oauth vendor libs.
git-svn-id: http://code.elgg.org/elgg/trunk@7836 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/oauth_lib/start.php')
-rw-r--r--mod/oauth_lib/start.php23
1 files changed, 12 insertions, 11 deletions
diff --git a/mod/oauth_lib/start.php b/mod/oauth_lib/start.php
index d86e58cbd..7830dbe15 100644
--- a/mod/oauth_lib/start.php
+++ b/mod/oauth_lib/start.php
@@ -4,17 +4,18 @@
*/
// require all vendor libraries
-require_once "{$CONFIG->pluginspath}oauth_lib/vendors/oauth/library/OAuthDiscovery.php";
-require_once "{$CONFIG->pluginspath}oauth_lib/vendors/oauth/library/OAuthRequest.php";
-require_once "{$CONFIG->pluginspath}oauth_lib/vendors/oauth/library/OAuthRequester.php";
-require_once "{$CONFIG->pluginspath}oauth_lib/vendors/oauth/library/OAuthRequestVerifier.php";
-require_once "{$CONFIG->pluginspath}oauth_lib/vendors/oauth/library/OAuthServer.php";
+$plugin_path = dirname(__FILE__) . '/vendors/oauth/library';
+require_once "$plugin_path/OAuthDiscovery.php";
+require_once "$plugin_path/OAuthRequest.php";
+require_once "$plugin_path/OAuthRequester.php";
+require_once "$plugin_path/OAuthRequestVerifier.php";
+require_once "$plugin_path/OAuthServer.php";
-require_once "{$CONFIG->pluginspath}oauth_lib/vendors/oauth/library/body/OAuthBodyMultipartFormdata.php";
+require_once "$plugin_path/body/OAuthBodyMultipartFormdata.php";
-require_once "{$CONFIG->pluginspath}oauth_lib/vendors/oauth/library/store/OAuthStoreAbstract.class.php";
+require_once "$plugin_path/store/OAuthStoreAbstract.class.php";
-require_once "{$CONFIG->pluginspath}oauth_lib/vendors/oauth/library/signature_method/OAuthSignatureMethod_HMAC_SHA1.php";
-require_once "{$CONFIG->pluginspath}oauth_lib/vendors/oauth/library/signature_method/OAuthSignatureMethod_MD5.php";
-require_once "{$CONFIG->pluginspath}oauth_lib/vendors/oauth/library/signature_method/OAuthSignatureMethod_PLAINTEXT.php";
-require_once "{$CONFIG->pluginspath}oauth_lib/vendors/oauth/library/signature_method/OAuthSignatureMethod_RSA_SHA1.php";
+require_once "$plugin_path/signature_method/OAuthSignatureMethod_HMAC_SHA1.php";
+require_once "$plugin_path/signature_method/OAuthSignatureMethod_MD5.php";
+require_once "$plugin_path/signature_method/OAuthSignatureMethod_PLAINTEXT.php";
+require_once "$plugin_path/signature_method/OAuthSignatureMethod_RSA_SHA1.php";