Changeset 2338 for temp/trunk


Ignore:
Timestamp:
2006/08/28 16:31:56 (20 years ago)
Author:
naka
Message:

* empty log message *

Location:
temp/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/data/module/DB.php

    r2290 r2338  
    3030require_once 'PEAR.php'; 
    3131 
    32  
    33  
     32if(!defined('DB_PHP_DIR')) { 
     33    $DB_PHP_DIR = realpath(dirname( __FILE__)); 
     34    define("DB_PHP_DIR", $DB_PHP_DIR);   
     35} 
    3436// {{{ constants 
    3537// {{{ error codes 
     
    454456        if (isset($options['debug']) && $options['debug'] >= 2) { 
    455457            // expose php errors with sufficient debug level 
    456             include_once "DB/{$type}.php"; 
     458            include_once DB_PHP_DIR . "/DB/{$type}.php"; 
    457459        } else { 
    458             @include_once "DB/{$type}.php"; 
     460            @include_once DB_PHP_DIR . "/DB/{$type}.php"; 
    459461        } 
    460462 
     
    532534        if (isset($options['debug']) && $options['debug'] >= 2) { 
    533535            // expose php errors with sufficient debug level 
    534             include_once "DB/${type}.php"; 
     536            include_once DB_PHP_DIR . "/DB/${type}.php"; 
    535537        } else { 
    536             @include_once "DB/${type}.php"; 
     538            @include_once DB_PHP_DIR . "/DB/${type}.php"; 
    537539        } 
    538540 
Note: See TracChangeset for help on using the changeset viewer.