mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Merge pull request #2465 from phil-davis/patch-2
This commit is contained in:
commit
e656d8a3ad
@ -504,6 +504,16 @@ if ($_POST['apply']) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* Is the description already used as an alias name? */
|
||||
if (is_array($config['aliases']['alias'])) {
|
||||
foreach ($config['aliases']['alias'] as $alias) {
|
||||
if ($alias['name'] == $_POST['descr']) {
|
||||
$input_errors[] = sprintf(gettext("Sorry, an alias with the name %s already exists."), $_POST['descr']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(is_numeric($_POST['descr'])) {
|
||||
$input_errors[] = gettext("The interface description cannot contain only numbers.");
|
||||
}
|
||||
@ -1493,7 +1503,7 @@ foreach ($mediaopts as $mediaopt){
|
||||
}
|
||||
}
|
||||
|
||||
$pgtitle = array(gettext("Interfaces"), $pconfig['descr']);
|
||||
$pgtitle = array(gettext("Interfaces"), $wancfg['descr']);
|
||||
$shortcut_section = "interfaces";
|
||||
|
||||
$closehead = false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user