mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-12 19:02:35 +01:00
add missing rule
This commit is contained in:
@@ -222,11 +222,13 @@ class Utils
|
||||
$prefix = 'dump';
|
||||
$ext = 'sql';
|
||||
if (in_array($type, array('mysql', 'mysqli'))) {
|
||||
$prefix = 'mysqldump'; $ext = 'sql';
|
||||
$prefix = 'mysqldump';
|
||||
$ext = 'sql';
|
||||
}
|
||||
//if ($label == 'PostgreSQL') { $prefix='pg_dump'; $ext='dump'; }
|
||||
if (in_array($type, array('pgsql'))) {
|
||||
$prefix = 'pg_dump'; $ext = 'sql';
|
||||
$prefix = 'pg_dump';
|
||||
$ext = 'sql';
|
||||
}
|
||||
$file = $prefix.'_'.$dolibarr_main_db_name.'_'.dol_sanitizeFileName(DOL_VERSION).'_'.strftime("%Y%m%d%H%M").'.'.$ext;
|
||||
}
|
||||
@@ -350,7 +352,8 @@ class Utils
|
||||
|
||||
// TODO Replace with executeCLI function
|
||||
if ($execmethod == 1) {
|
||||
$output_arr = array(); $retval = null;
|
||||
$output_arr = array();
|
||||
$retval = null;
|
||||
exec($fullcommandclear, $output_arr, $retval);
|
||||
|
||||
if ($retval != 0) {
|
||||
|
||||
Reference in New Issue
Block a user