summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-02-08 22:01:16 +0000
committerErmal Luçi <eri@pfsense.org>2010-02-08 22:04:38 +0000
commitaabb805d85e5a3e82146cab6cdca798200f421a4 (patch)
tree5179174669979d17915b1ebf8f387cca16631461 /usr/local/www
parent6bc6bf7942828e40f256d37758012819a7163c18 (diff)
downloadpfsense-aabb805d85e5a3e82146cab6cdca798200f421a4.zip
pfsense-aabb805d85e5a3e82146cab6cdca798200f421a4.tar.gz
Ticket #341. Fix setting of default gw. Generate config after saving the changes as done on other places on pfsense code.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/guiconfig.inc2
-rw-r--r--usr/local/www/interfaces_ppp_edit.php5
2 files changed, 4 insertions, 3 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc
index 6f94e70..5a32d81 100755
--- a/usr/local/www/guiconfig.inc
+++ b/usr/local/www/guiconfig.inc
@@ -405,7 +405,7 @@ function filter_rules_sort() {
function aliases_sort() {
global $g, $config;
- function aliascmp($a, $b) {
+ function aliascmp(&$a, $b) {
return strcmp($a['name'], $b['name']);
}
diff --git a/usr/local/www/interfaces_ppp_edit.php b/usr/local/www/interfaces_ppp_edit.php
index 4fd82af..1b86ea4 100644
--- a/usr/local/www/interfaces_ppp_edit.php
+++ b/usr/local/www/interfaces_ppp_edit.php
@@ -111,7 +111,6 @@ if ($_POST) {
$ppp['connect-max-attempts'] = $_POST['connect-max-attempts'];
$ppp['descr'] = $_POST['descr'];
- interfaces_ppp_configure();
if (isset($id) && $a_ppps[$id])
$a_ppps[$id] = $ppp;
@@ -120,6 +119,8 @@ if ($_POST) {
write_config();
+ interfaces_ppp_configure();
+
header("Location: interfaces_ppp.php");
exit;
}
@@ -191,7 +192,7 @@ include("head.inc");
<tr>
<td width="22%" valign="top" class="vncell">Link Type</td>
<td width="78%" class="vtable">
- <input type="checkbox" value="on" id="defaultgw" name="defaultgw" <?php if (isset($pconfig['defaultgw'])) "echo checked"; ?>>This link will be used as default gateway.
+ <input type="checkbox" value="on" id="defaultgw" name="defaultgw" <?php if (isset($pconfig['defaultgw'])) echo "checked"; ?>>This link will be used as default gateway.
</td>
</tr>
<tr>
OpenPOWER on IntegriCloud