diff --git a/library/includes/cron/jobs/demo_mode.php b/library/includes/cron/jobs/demo_mode.php index aa46ac8cb..18babeb90 100644 --- a/library/includes/cron/jobs/demo_mode.php +++ b/library/includes/cron/jobs/demo_mode.php @@ -34,8 +34,3 @@ if (!DB()->query("DROP DATABASE " . SELECTED_DB)) { if (!DB()->query("CREATE DATABASE " . SELECTED_DB)) { return; } - -// Import sql dump from file -if (!DB()->multi_query($sql_dump)) { - return; -} diff --git a/src/Legacy/SqlDb.php b/src/Legacy/SqlDb.php index 6c3e473ec..70bd6176a 100644 --- a/src/Legacy/SqlDb.php +++ b/src/Legacy/SqlDb.php @@ -64,7 +64,7 @@ class SqlDb $this->do_explain = ($this->dbg_enabled && !empty($_COOKIE['explain'])); $this->slow_time = SQL_SLOW_QUERY_TIME; - // Links to the global vairables (for recording all the logs on all servers, counting total request count and etc) + // Links to the global variables (for recording all the logs on all servers, counting total request count and etc) $this->DBS['log_file'] =& $DBS->log_file; $this->DBS['log_counter'] =& $DBS->log_counter; $this->DBS['num_queries'] =& $DBS->num_queries; @@ -163,21 +163,6 @@ class SqlDb return $result; } - /** - * Performs one or more queries on the database - * - * @param $query - * @return mixed - */ - public function multi_query($query): mixed - { - if (!$result = $this->multi_query($query)) { - $this->trigger_error(); - } - - return $result; - } - /** * Return number of rows *