From 14c9366aac697e87499c5748b36fa7bf5e6cd320 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 22 Aug 2008 09:17:14 -0400 Subject: include external libs in a subdir to make install easier darcs-hash:20080822131714-84dde-6978424ded2ed1041a65142a25560654ac717fcd.gz --- lib/common.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'lib') diff --git a/lib/common.php b/lib/common.php index ff56b0920..32ef6ea7b 100644 --- a/lib/common.php +++ b/lib/common.php @@ -30,6 +30,10 @@ define('NOTICES_PER_PAGE', 20); define_syslog_variables(); +# append our extlib dir as the last-resort place to find libs + +set_include_path(array_merge(get_include_path(), array(INSTALLDIR . '/extlib/'))); + # global configuration object require_once('PEAR.php'); @@ -101,15 +105,16 @@ $config['db'] = 'db_driver' => 'DB', # XXX: JanRain libs only work with DB 'quote_identifiers' => false); -require_once(INSTALLDIR.'/config.php'); - -require_once('Validate.php'); - if (function_exists('date_default_timezone_set')) { /* Work internally in UTC */ date_default_timezone_set('UTC'); } +require_once(INSTALLDIR.'/config.php'); + +require_once('Validate.php'); +require_once('markdown.php'); + require_once(INSTALLDIR.'/lib/util.php'); require_once(INSTALLDIR.'/lib/action.php'); require_once(INSTALLDIR.'/lib/theme.php'); @@ -122,5 +127,3 @@ function __autoload($class) { require_once(INSTALLDIR.'/classes/' . $class . '.php'); } } - -require_once('markdown.php'); -- cgit v1.2.3-54-g00ecf