Skip to content

Commit

Permalink
Fix for issue 93
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobg@corollarium.com committed Jan 12, 2011
1 parent 129b4c5 commit c2c892c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions library/OAuthStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,15 @@ class OAuthStore

/**
* Request an instance of the OAuthStore
*
* @param string $store The storage system
* @param array $options To pass to the storage system
* @param boolean $forceNewInstance If true, forces the instantiation of a new store.
* @throws OAuthException2
*/
public static function instance ( $store = 'MySQL', $options = array() )
public static function instance ( $store = 'MySQL', $options = array(), $forceNewInstance = false )
{
if (!OAuthStore::$instance)
if (!OAuthStore::$instance or $forceNewInstance)
{
// Select the store you want to use
if (strpos($store, '/') === false)
Expand Down

0 comments on commit c2c892c

Please sign in to comment.