Fixed issue 261, default paths for gitcron.php and gitserve.php can't find Pluf.

This commit is contained in:
Loic d'Anterroches
2009-10-09 10:16:00 +02:00
parent aa383ffb1b
commit 58ab16432c
5 changed files with 49 additions and 27 deletions

View File

@@ -21,13 +21,7 @@
#
# ***** END LICENSE BLOCK ***** */
// Set the include path to have Pluf and IDF in it.
$indefero_path = dirname(__FILE__).'/../src';
//$pluf_path = '/path/to/pluf/src';
set_include_path(get_include_path()
.PATH_SEPARATOR.$indefero_path
// .PATH_SEPARATOR.$pluf_path
);
require dirname(__FILE__).'/../src/IDF/conf/path.php';
require 'Pluf.php';
Pluf::start(dirname(__FILE__).'/../src/IDF/conf/idf.php');
Pluf_Dispatcher::loadControllers(Pluf::f('idf_views'));