* Get global config for SQLite.

This commit is contained in:
zhouxin
2023-06-14 14:04:52 +08:00
parent aba9de8f2d
commit 4d226879c1
+10 -2
View File
@@ -18,6 +18,14 @@ class sqlite
*/
public $app;
/**
* The global config object.
*
* @var object
* @access public
*/
public $config;
/**
* The global mysql object.
*
@@ -35,7 +43,6 @@ class sqlite
public $dbh = null;
/**
* 是否开启特殊字符转义。
* Magic quote or not.
*
* @var bool
@@ -51,9 +58,10 @@ class sqlite
*/
public function __construct()
{
global $app, $dbh;
global $app, $config, $dbh;
$this->app = $app;
$this->mysql = $dbh;
$this->config = $config;
$this->magicQuote = (version_compare(phpversion(), '5.4', '<') and function_exists('get_magic_quotes_gpc') and get_magic_quotes_gpc());
$this->connectSqlite();