mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-24 23:25:48 -07:00
Updated
This commit is contained in:
parent
fd152cf2ef
commit
e1c2c3cac1
2 changed files with 1 additions and 21 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue