Skip to content

Commit

Permalink
fix[php]: scope issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sk33z3r committed Jun 23, 2022
1 parent 634824d commit c67aa3f
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion php/collection/images.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<div class="modal" id="loading">
<div class="modal-content">
<?php //hard set progress.json
set_progress_file("Initializing Image Generator");
set_progress_file("Initializing Image Generator", $progress_file);
?>
<h2>Hang tight, we're generating <?php echo $count; ?> images for you...</h2>
<img loading="lazy" src="/css/images/generate.gif" alt="GENERATING IMAGES..." />
Expand Down
2 changes: 1 addition & 1 deletion php/collection/metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<div class="modal" id="loading">
<div class="modal-content">
<?php //hard set progress.json
set_progress_file("Initializing Metadata Generator");
set_progress_file("Initializing Metadata Generator", $progress_file);
?>
<h2>Hang tight, we're generating metadata for you...</h2>
<img loading="lazy" src="/css/images/metadata.gif" alt="GENERATING METADATA..." />
Expand Down
2 changes: 1 addition & 1 deletion php/collection/mint.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
<div class="modal" id="loading">
<div class="modal-content">
<?php //hard set progress.json
set_progress_file("Initializing Mint Engine");
set_progress_file("Initializing Mint Engine", $progress_file);
?>
<h2><?php echo $loading_msg; ?></h2>
<img loading="lazy" src="/css/images/minting.gif" alt="MINTING..." />
Expand Down
2 changes: 1 addition & 1 deletion php/collection/transfer.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
<div class="modal" id="loading">
<div class="modal-content">
<?php //hard set progress.json
set_progress_file("Initializing Transfer Engine");
set_progress_file("Initializing Transfer Engine", $progress_file);
?>
<h2><?php echo $loading_msg; ?></h2>
<img loading="lazy" src="/css/images/transfer.gif" alt="TRANSFERRING..." />
Expand Down
6 changes: 3 additions & 3 deletions php/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ function BrowserRedirect($url) {
exit();
}

function set_progress_file($operation) {
if (file_exists($progress_file)) { unlink($progress_file); }
function set_progress_file($operation, $file) {
if (file_exists($file)) { unlink($file); }
$progress = array(
"operation" => $operation,
"completed" => "-",
"total" => "-"
);
$json = json_encode($progress, JSON_UNESCAPED_SLASHES);
file_put_contents($progress_file, $json);
file_put_contents($file, $json);
}
2 changes: 1 addition & 1 deletion php/mint.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
<div class="modal" id="loading">
<div class="modal-content">
<?php //hard set progress.json
set_progress_file("Initializing Mint Engine");
set_progress_file("Initializing Mint Engine", $progress_file);
?>
<h2><?php echo $loading_msg; ?></h2>
<img loading="lazy" src="/css/images/minting.gif" alt="MINTING..." />
Expand Down
2 changes: 1 addition & 1 deletion php/transfer.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
<div class="modal" id="loading">
<div class="modal-content">
<?php //hard set progress.json
set_progress_file("Initializing Transfer Engine");
set_progress_file("Initializing Transfer Engine", $progress_file);
?>
<h2><?php echo $loading_msg; ?></h2>
<img loading="lazy" src="/css/images/transfer.gif" alt="TRANSFERRING..." />
Expand Down

0 comments on commit c67aa3f

Please sign in to comment.