Skip to content

Commit

Permalink
Tweak teleporter output (#2545)
Browse files Browse the repository at this point in the history
  • Loading branch information
yubiuser authored Mar 17, 2023
2 parents 4a9a0c2 + ea91606 commit 43503fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/pi-hole/php/teleporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ function noun($num)

$flushtables = isset($_POST['flushtables']);

echo 'Start importing...'."<br>\n";
foreach (new RecursiveIteratorIterator($archive) as $file) {
if (isset($_POST['blacklist']) && $file->getFilename() === 'blacklist.txt') {
$num = archive_insert_into_table($file, 'blacklist', $flushtables);
Expand Down Expand Up @@ -559,7 +560,7 @@ function noun($num)
}

unlink($fullfilename);
echo 'OK';
echo 'Done importing';
if ($reloadsettingspage) {
echo "<br>\n<span data-forcereload></span>";
}
Expand Down

0 comments on commit 43503fc

Please sign in to comment.