50 if (!isset($legacy) && file_exists(
$file)) {
52 if (!defined(
'XOOPS_DB_PROXY')) {
53 $class =
'XoopsMysqlDatabaseSafe';
55 $class =
'XoopsMysqlDatabaseProxy';
58 $xoopsPreload->triggerEvent(
'core.class.database.databasefactory.connection', array(&$class));
59 $legacy =
new $class();
61 $legacy->conn = \Xoops\Core\Database\Factory::getConnection();
63 if (is_null($legacy->conn)) {
64 trigger_error(
'notrace:Unable to connect to database', E_USER_ERROR);
if(!isset($xoops->paths[$path_type])) if($path_type== 'var') $file
static getDatabaseConnection()