From 1243a8f6ad3f94c2c18f7b7a4f6a0e4afc539745 Mon Sep 17 00:00:00 2001 From: Loic d'Anterroches Date: Wed, 27 May 2009 23:30:27 +0200 Subject: [PATCH] Test the preloading of the class. --- src/IDF/Project.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/IDF/Project.php b/src/IDF/Project.php index 8c07deb..caea6ce 100644 --- a/src/IDF/Project.php +++ b/src/IDF/Project.php @@ -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); }