Bug fix for log file with class and missing wrapper function in DB\IO

When the class name was in a namespace the \ was added into the file
name that might cause some issues. \ is replaced with -

The wrapper for db_exec was missing in the DB\IO class
This commit is contained in:
Clemens Schwaighofer
2018-03-29 16:15:33 +09:00
parent 477aae6232
commit 2051d17901
3 changed files with 11 additions and 5 deletions
+6
View File
@@ -1964,6 +1964,12 @@ class IO extends \CoreLibs\Basic
return $this->dbCacheReset($query);
}
public function db_exec($query = 0, $pk_name = '')
{
error_log('DEPRECATED CALL: '.__METHOD__.', '.__FILE__.':'.__LINE__.', '.debug_backtrace()[0]['file'].':'.debug_backtrace()[0]['line']);
return $this->dbExec($query, $pk_name);
}
public function db_exec_async($query, $pk_name = '')
{
error_log('DEPRECATED CALL: '.__METHOD__.', '.__FILE__.':'.__LINE__.', '.debug_backtrace()[0]['file'].':'.debug_backtrace()[0]['line']);