From 7e6ce1514f30560cc4ca81dab1302da749792430 Mon Sep 17 00:00:00 2001
From: martin <martin@martin-ThinkPad-T410.(none)>
Date: Wed, 13 Apr 2011 18:22:56 -0400
Subject: [PATCH] -fixed airtime install not working.

---
 install/include/AirtimeInstall.php | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/install/include/AirtimeInstall.php b/install/include/AirtimeInstall.php
index 847fc2a45..bf451757f 100644
--- a/install/include/AirtimeInstall.php
+++ b/install/include/AirtimeInstall.php
@@ -1,6 +1,9 @@
 <?php
 
-require_once(dirname(__FILE__).'/../../library/pear/DB.php');
+//Pear classes.
+set_include_path(__DIR__.'/../../library/pear' . PATH_SEPARATOR . get_include_path());
+
+require_once('DB.php');
 require_once(dirname(__FILE__).'/../../application/configs/conf.php');
 
 class AirtimeInstall {
@@ -47,8 +50,8 @@ class AirtimeInstall {
 
     static function DbConnect($p_exitOnError = true)
     {
-        global $CC_DBC, $CC_CONFIG;
-        $CC_DBC = DB::connect($CC_CONFIG['dsn'], TRUE);
+        global $CC_DBC, $CC_CONFIG;        
+        $CC_DBC = DB::connect($CC_CONFIG['dsn'], FALSE);
         if (PEAR::isError($CC_DBC)) {
             echo $CC_DBC->getMessage().PHP_EOL;
             echo $CC_DBC->getUserInfo().PHP_EOL;