expandedfronts / revisr

Revisr: Git for WordPress
https://revisr.io
GNU General Public License v3.0
195 stars 41 forks source link

Adding host to SQL connection #2

Closed sschafft-psi closed 10 years ago

sschafft-psi commented 10 years ago

The backup / restore commands dont take into account DB host.

Fixed by adding @ class.revisr_db.php @ 35 -> 44

public function backup()
{
    if (isset($this->options['mysql_path'])) {
        $path = $this->options['mysql_path'];
        exec("{$path}mysqldump {$this->conn} --host " . DB_HOST . " > {$this->sql_file}");
    }
    else {
        exec("mysqldump {$this->conn} --host " . DB_HOST . " > {$this->sql_file}");
    }
}
expandedfronts commented 10 years ago

This is fixed with 81bd577, and will be included in the next release. Thanks!