Revision 5679253c
Added by Renato Botelho almost 10 years ago
src/etc/inc/upgrade_config.inc | ||
---|---|---|
3982 | 3982 |
} |
3983 | 3983 |
|
3984 | 3984 |
function upgrade_123_to_124() { |
3985 |
require_once("notices.inc"); |
|
3986 | 3985 |
global $config; |
3987 | 3986 |
|
3988 | 3987 |
/* Find interfaces with WEP configured. */ |
... | ... | |
3993 | 3992 |
|
3994 | 3993 |
/* Generate a notice, disable interface, remove WEP settings */ |
3995 | 3994 |
if (isset($intf['wireless']['wep']['enable'])) { |
3995 |
if (!function_exists("file_notice")) { |
|
3996 |
require_once("notices.inc"); |
|
3997 |
} |
|
3996 | 3998 |
file_notice("WirelessSettings", "WEP is no longer supported. It will be disabled on the {$ifname} interface and the interface will be disabled. Please reconfigure the interface."); |
3997 | 3999 |
unset($config['interfaces'][$ifname]['wireless']['wep']); |
3998 | 4000 |
if (isset($intf['enable'])) { |
Also available in: Unified diff
Require notices.inc only if it's going to be used