Test the preloading of the class.

master
Loic d'Anterroches 2009-05-27 23:30:27 +02:00
parent d98dda645e
commit 1243a8f6ad
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}