You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by ch...@apache.org on 2009/07/07 00:13:49 UTC
svn commit: r791632 -
/incubator/shindig/branches/1.0.x-incubating/php/src/gadgets/oauth/BasicGadgetOAuthTokenStore.php
Author: chabotc
Date: Mon Jul 6 22:13:48 2009
New Revision: 791632
URL: http://svn.apache.org/viewvc?rev=791632&view=rev
Log:
Make the oauth.json location dynamic, location changes on release packaging
Modified:
incubator/shindig/branches/1.0.x-incubating/php/src/gadgets/oauth/BasicGadgetOAuthTokenStore.php
Modified: incubator/shindig/branches/1.0.x-incubating/php/src/gadgets/oauth/BasicGadgetOAuthTokenStore.php
URL: http://svn.apache.org/viewvc/incubator/shindig/branches/1.0.x-incubating/php/src/gadgets/oauth/BasicGadgetOAuthTokenStore.php?rev=791632&r1=791631&r2=791632&view=diff
==============================================================================
--- incubator/shindig/branches/1.0.x-incubating/php/src/gadgets/oauth/BasicGadgetOAuthTokenStore.php (original)
+++ incubator/shindig/branches/1.0.x-incubating/php/src/gadgets/oauth/BasicGadgetOAuthTokenStore.php Mon Jul 6 22:13:48 2009
@@ -21,13 +21,14 @@
class BasicGadgetOAuthTokenStore extends GadgetOAuthTokenStore {
/** default location for consumer keys and secrets */
- private $OAUTH_CONFIG = "../config/oauth.json";
+ private $OAUTH_CONFIG = "oauth.json";
private $CONSUMER_SECRET_KEY = "consumer_secret";
private $CONSUMER_KEY_KEY = "consumer_key";
private $KEY_TYPE_KEY = "key_type";
public function __construct($store, $fetcher) {
parent::__construct($store, $fetcher);
+ $this->OAUTH_CONFIG = Config::get('container_path') . $this->OAUTH_CONFIG;
}
public function initFromConfigFile($fetcher) {