summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.console.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-04-04 18:05:21 +0000
committerErmal <eri@pfsense.org>2012-04-04 18:05:21 +0000
commit870952cf3a3e82ef25d90a9193877c452e8df0b0 (patch)
treef07125aad9c1826ede247e1ae43e74cd81f14c73 /etc/inc/config.console.inc
parent08ab5cd2b45247ea73e022d9334c218b15c281ec (diff)
downloadpfsense-870952cf3a3e82ef25d90a9193877c452e8df0b0.zip
pfsense-870952cf3a3e82ef25d90a9193877c452e8df0b0.tar.gz
Just php does not like this variable name and just prepends the 1 in output!
Diffstat (limited to 'etc/inc/config.console.inc')
-rw-r--r--etc/inc/config.console.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/etc/inc/config.console.inc b/etc/inc/config.console.inc
index 03a9833..6fbc56e 100644
--- a/etc/inc/config.console.inc
+++ b/etc/inc/config.console.inc
@@ -255,19 +255,19 @@ EOD;
while (1) {
if ($optif[$i])
$i++;
- $i1 = $i + 1;
+ $io = $i + 1;
- if($config['interfaces']['opt' . $i1]['descr'])
- printf(gettext("%sOptional interface %s description found: %s"), "\n", $i1, $config['interfaces']['opt' . $i1]['descr']);
+ if($config['interfaces']['opt' . $io]['descr'])
+ printf(gettext("%sOptional interface %s description found: %s"), "\n", $io, $config['interfaces']['opt' . $io]['descr']);
- printf(gettext("%sEnter the Optional %s{$i1} interface name or 'a' for auto-detection%s" .
- "(or nothing if finished):%s"), "\n", $i1, "\n", " ");
+ printf(gettext("%sEnter the Optional %s{$i} interface name or 'a' for auto-detection%s" .
+ "(or nothing if finished):%s"), "\n", $i, "\n", " ");
$optif[$i] = chop(fgets($fp));
if ($optif[$i]) {
if ($optif[$i] === "a") {
- $ad = autodetect_interface(gettext("Optional") . " " . $i1, $fp);
+ $ad = autodetect_interface(gettext("Optional") . " " . $io, $fp);
if ($ad)
$optif[$i] = $ad;
else
OpenPOWER on IntegriCloud