Skip to content

Commit c2a3019

Browse files
committed
Load an arbritary Strategy
1 parent cf75d0a commit c2a3019

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Opauth/Opauth.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function __construct($config = array()){
5353
require $this->env['LIB'].'OpauthStrategy.php';
5454
require $this->env['STRATEGY'].$strategy['name'].'.php';
5555

56-
$this->Strategy = new Facebook($this);
56+
$this->Strategy = new $strategy['name']($this);
5757
}
5858
else{
5959
trigger_error('Unsupported or undefined Opauth strategy - '.$this->env['strategy'], E_USER_ERROR);

0 commit comments

Comments
 (0)