From a6ed7ba20bc1853f7e940a1bf5e877e25b0762f8 Mon Sep 17 00:00:00 2001 From: Vytenis Date: Mon, 17 Apr 2017 16:49:53 +0300 Subject: [PATCH] Update DB_driver.php --- system/database/DB_driver.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php index 02f4cd426ce..7bc11f0c4fb 100644 --- a/system/database/DB_driver.php +++ b/system/database/DB_driver.php @@ -1363,7 +1363,7 @@ public function display_error($error = '', $swap = '', $native = FALSE) $call['file'] = str_replace('\\', '/', $call['file']); } - if (isset($call['file'], $call['class']) && strpos($call['file'], $basepath.'database') === FALSE && strpos($call['class'], 'Loader') !== FALSE) + if (isset($call['file'], $call['class']) && strpos($call['file'], BASEPATH.'database') === FALSE && strpos($call['class'], 'Loader') !== FALSE) { // Found it - use a relative path for safety $message[] = 'Filename: '.str_replace(array(APPPATH, BASEPATH), '', $call['file']); @@ -1575,4 +1575,4 @@ protected function _reset_select() } /* End of file DB_driver.php */ -/* Location: ./system/database/DB_driver.php */ \ No newline at end of file +/* Location: ./system/database/DB_driver.php */