We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52c3bb4 commit e24db9bCopy full SHA for e24db9b
lib/Opauth/Opauth.php
@@ -41,8 +41,6 @@ class Opauth{
41
* @param boolean $run Whether Opauth should auto run after initialization.
42
*/
43
public function __construct($config = array(), $run = true){
44
- require $this->env['lib_dir'].'OpauthStrategy.php';
45
-
46
/**
47
* Configurable settings
48
@@ -73,6 +71,10 @@ public function __construct($config = array(), $run = true){
73
71
'strategy_dir' => dirname(__FILE__).'/Strategy/'
74
72
), $this->config);
75
+ if (!class_exists('OpauthStrategy')){
+ require $this->env['lib_dir'].'OpauthStrategy.php';
76
+ }
77
+
78
foreach ($this->env as $key => $value){
79
$this->env[$key] = OpauthStrategy::envReplace($value, $this->env);
80
}
0 commit comments