From 2754cd17ee3e0d141593df57b3fbea96fcfa4aec Mon Sep 17 00:00:00 2001 From: gnieark Date: Sat, 12 Dec 2015 11:16:54 +0100 Subject: [PATCH] debog --- src/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions.php b/src/functions.php index aab8218..5956461 100644 --- a/src/functions.php +++ b/src/functions.php @@ -218,7 +218,7 @@ function get_unique_id(){ $fp = fopen(__DIR__.'/countBattles.txt', 'c+'); flock($fp, LOCK_EX); - $count = (int)fread($fp, filesize('count.txt')); + $count = (int)fread($fp, filesize(__DIR__.'/count.txt')); ftruncate($fp, 0); fseek($fp, 0); fwrite($fp, $count + 1);