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();
|
||||
$scm = $conf->getVal('scm', 'git');
|
||||
$scms = Pluf::f('allowed_scm');
|
||||
Pluf::loadClass($scms[$scm]);
|
||||
return call_user_func(array($scms[$scm], 'getAnonymousAccessUrl'),
|
||||
$this);
|
||||
}
|
||||
@ -374,6 +375,7 @@ class IDF_Project extends Pluf_Model
|
||||
$conf = $this->getConf();
|
||||
$scm = $conf->getVal('scm', 'git');
|
||||
$scms = Pluf::f('allowed_scm');
|
||||
Pluf::loadClass($scms[$scm]);
|
||||
return call_user_func(array($scms[$scm], 'getAuthAccessUrl'),
|
||||
$this, $user);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user