Skip to content

Commit

Permalink
Critical fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AbyssMorgan committed Feb 16, 2023
1 parent d5b253a commit de326fc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions includes/AVE.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class AVE extends CommandLine {
public bool $open_log = false;

public string $app_name = "AVE";
public string $version = "1.4.4";
public string $version = "1.4.5";

private ?string $command;
private array $arguments;
Expand Down Expand Up @@ -267,13 +267,13 @@ public function set_subtool(string $name) : void {
public function set_progress(int $progress, int $errors) : void {
$title = "$this->app_name v$this->version > $this->tool_name";
if(!empty($this->subtool_name)) $title .= " > $this->subtool_name";
$this->title("[$title] Files: $progress Errors: $errors");
$this->title("$title > Files: $progress Errors: $errors");
}

public function set_progress_ex(string $label, int $progress, int $total) : void {
$title = "$this->app_name v$this->version > $this->tool_name";
if(!empty($this->subtool_name)) $title .= " > $this->subtool_name";
$this->title("[$title] $label: $progress / $total");
$this->title("$title > $label: $progress / $total");
}

public function select_tool() : bool {
Expand Down
2 changes: 1 addition & 1 deletion includes/services/MediaFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function getVideoThumbnail(string $path, string $output, int $w, int $r,
if(file_exists($path."_s.jpg")) return true;
$folder = pathinfo($path, PATHINFO_DIRNAME);
exec("mtn -w $w -r $r -c $c -P \"$path\" -O \"$output\" >nul 2>nul", $out);
return file_exists($path."_s.jpg");
return file_exists($output.DIRECTORY_SEPARATOR.pathinfo($path, PATHINFO_BASENAME)."_s.jpg");
}

public function getMediaOrientation(int $width, int $height) : int {
Expand Down
2 changes: 1 addition & 1 deletion includes/tools/MySQLTools.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public function ToolMakeBackup() : bool {
if($ini->get('BACKUP_COMPRESS', false)){
echo " Compressing backup\r\n";
$this->ave->write_log("Compressing backup");
$sql = $this->ave->get_file_path("$output./*.sql");
$sql = $this->ave->get_file_path("$output/*.sql");
system("7z a -mx$cl -t$at \"$output.7z\" \"$sql\"");
echo "\r\n";
if(file_exists("$output.7z")){
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.4
1.4.5

0 comments on commit de326fc

Please sign in to comment.