summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-06-08 14:24:00 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-06-08 14:24:00 -0300
commitf57e41814655f13cc34a1089d87630b68a4cccf3 (patch)
tree55b00371df5d65f473c7f0ef842bc29b7ed524c9
parent2abd3885f7ec1f0b5b45d3adcb765305dd128069 (diff)
downloadpfsense-f57e41814655f13cc34a1089d87630b68a4cccf3.zip
pfsense-f57e41814655f13cc34a1089d87630b68a4cccf3.tar.gz
Replace hardcoded path by vardb_path
-rwxr-xr-xusr/local/www/status_captiveportal.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/status_captiveportal.php b/usr/local/www/status_captiveportal.php
index 41787f3..b596df2 100755
--- a/usr/local/www/status_captiveportal.php
+++ b/usr/local/www/status_captiveportal.php
@@ -59,7 +59,7 @@ function clientcmp($a, $b) {
$cpdb = array();
if (file_exists("{$g['vardb_path']}/captiveportal.db")) {
$captiveportallck = lock('captiveportaldb');
- $cpcontents = file("/var/db/captiveportal.db", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
+ $cpcontents = file("{$g['vardb_path']}/captiveportal.db", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
unlock($captiveportallck);
} else
$cpcontents = array();
OpenPOWER on IntegriCloud