Test the preloading of the class.
This commit is contained in:
parent
d98dda645e
commit
1243a8f6ad
@ -358,6 +358,7 @@ class IDF_Project extends Pluf_Model
|
|||||||
$conf = $this->getConf();
|
$conf = $this->getConf();
|
||||||
$scm = $conf->getVal('scm', 'git');
|
$scm = $conf->getVal('scm', 'git');
|
||||||
$scms = Pluf::f('allowed_scm');
|
$scms = Pluf::f('allowed_scm');
|
||||||
|
Pluf::loadClass($scms[$scm]);
|
||||||
return call_user_func(array($scms[$scm], 'getAnonymousAccessUrl'),
|
return call_user_func(array($scms[$scm], 'getAnonymousAccessUrl'),
|
||||||
$this);
|
$this);
|
||||||
}
|
}
|
||||||
@ -374,6 +375,7 @@ class IDF_Project extends Pluf_Model
|
|||||||
$conf = $this->getConf();
|
$conf = $this->getConf();
|
||||||
$scm = $conf->getVal('scm', 'git');
|
$scm = $conf->getVal('scm', 'git');
|
||||||
$scms = Pluf::f('allowed_scm');
|
$scms = Pluf::f('allowed_scm');
|
||||||
|
Pluf::loadClass($scms[$scm]);
|
||||||
return call_user_func(array($scms[$scm], 'getAuthAccessUrl'),
|
return call_user_func(array($scms[$scm], 'getAuthAccessUrl'),
|
||||||
$this, $user);
|
$this, $user);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user