From 870952cf3a3e82ef25d90a9193877c452e8df0b0 Mon Sep 17 00:00:00 2001 From: Ermal Date: Wed, 4 Apr 2012 18:05:21 +0000 Subject: Just php does not like this variable name and just prepends the 1 in output! --- etc/inc/config.console.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'etc/inc/config.console.inc') 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 -- cgit v1.1