Skip to content

Commit

Permalink
fix: verify correct path before creating logos folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Ribeiro committed Oct 14, 2024
1 parent 2ef6ecd commit 7b874b1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion endpoints/payments/add.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require_once '../../includes/inputvalidation.php';
require_once '../../includes/getsettings.php';

if (!file_exists('images/uploads/logos')) {
if (!file_exists('../../images/uploads/logos')) {
mkdir('../../images/uploads/logos', 0777, true);
mkdir('../../images/uploads/logos/avatars', 0777, true);
}
Expand Down
2 changes: 1 addition & 1 deletion endpoints/subscription/add.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require_once '../../includes/inputvalidation.php';
require_once '../../includes/getsettings.php';

if (!file_exists('images/uploads/logos')) {
if (!file_exists('../../images/uploads/logos')) {
mkdir('../../images/uploads/logos', 0777, true);
mkdir('../../images/uploads/logos/avatars', 0777, true);
}
Expand Down
2 changes: 1 addition & 1 deletion endpoints/user/save_user.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require_once '../../includes/connect_endpoint.php';
require_once '../../includes/inputvalidation.php';

if (!file_exists('images/uploads/logos')) {
if (!file_exists('../../images/uploads/logos')) {
mkdir('../../images/uploads/logos', 0777, true);
mkdir('../../images/uploads/logos/avatars', 0777, true);
}
Expand Down
2 changes: 1 addition & 1 deletion includes/version.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php
$version = "v2.30.0";
$version = "v2.30.1";
?>

0 comments on commit 7b874b1

Please sign in to comment.