From 57bbc83a4c23e4553dcd36590b582878ca9fc389 Mon Sep 17 00:00:00 2001 From: mcguirepr89 Date: Fri, 6 May 2022 13:46:02 -0400 Subject: [PATCH] using webroot for file check on `$count` --- scripts/advanced.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/advanced.php b/scripts/advanced.php index 24f4879..db3140c 100644 --- a/scripts/advanced.php +++ b/scripts/advanced.php @@ -165,8 +165,8 @@ if(isset($_GET['submit'])) { fwrite($fh2, $contents2); } -$count_included = count(file("/home/pi/BirdNET-Pi/include_species_list.txt")); -$count_labels = count(file("/home/pi/BirdNET-Pi/model/labels.txt")); +$count_included = count(file("./scripts/include_species_list.txt")); +$count_labels = count(file("./scripts/labels.txt")); if($count_included > 0) { $count = $count_included;