Author: chabotc
Date: Mon Jul  6 22:13:16 2009
New Revision: 791630

URL: http://svn.apache.org/viewvc?rev=791630&view=rev
Log:
Make the oauth.json location dynamic, location changes on release packaging

Modified:
    incubator/shindig/trunk/php/src/gadgets/oauth/BasicGadgetOAuthTokenStore.php

Modified: 
incubator/shindig/trunk/php/src/gadgets/oauth/BasicGadgetOAuthTokenStore.php
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/gadgets/oauth/BasicGadgetOAuthTokenStore.php?rev=791630&r1=791629&r2=791630&view=diff
==============================================================================
--- 
incubator/shindig/trunk/php/src/gadgets/oauth/BasicGadgetOAuthTokenStore.php 
(original)
+++ 
incubator/shindig/trunk/php/src/gadgets/oauth/BasicGadgetOAuthTokenStore.php 
Mon Jul  6 22:13:16 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) {


Reply via email to