From 692861c958898f425cc365906c092559d7cfc60c Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 18 Feb 2019 11:51:49 +0800 Subject: [PATCH] fix mysqli type connection --- UpdateDatabase.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UpdateDatabase.php b/UpdateDatabase.php index 19c0dd9d..989e524f 100644 --- a/UpdateDatabase.php +++ b/UpdateDatabase.php @@ -1200,12 +1200,14 @@ class Pman_Core_UpdateDatabase extends Pman $dburl = parse_url($ff->database); $dbtype = $dburl['scheme']; - + $dbtype = ($dbtype == 'mysqli') ? 'mysql' : $dbtype; + foreach($this->extensions as $ext) { $scls = ucfirst($dbtype). $ext; $cls = __CLASS__ . '_'. $scls; $fn = implode('/',explode('_', $cls)).'.php'; + if (!file_exists(__DIR__.'/UpdateDatabase/'. $scls .'.php')) { return; } -- 2.39.2