Skip to content

Commit

Permalink
Replace hardcoded path by vardb_path
Browse files Browse the repository at this point in the history
  • Loading branch information
rbgarga committed Jun 8, 2013
1 parent 2abd388 commit f57e418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/local/www/status_captiveportal.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit f57e418

Please sign in to comment.