diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-06-08 14:24:00 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-06-08 14:24:00 -0300 |
commit | f57e41814655f13cc34a1089d87630b68a4cccf3 (patch) | |
tree | 55b00371df5d65f473c7f0ef842bc29b7ed524c9 | |
parent | 2abd3885f7ec1f0b5b45d3adcb765305dd128069 (diff) | |
download | pfsense-f57e41814655f13cc34a1089d87630b68a4cccf3.zip pfsense-f57e41814655f13cc34a1089d87630b68a4cccf3.tar.gz |
Replace hardcoded path by vardb_path
-rwxr-xr-x | usr/local/www/status_captiveportal.php | 2 |
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(); |