From b4d06b803d1f4e3c8fa8b9650f708290ad48dc66 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Tue, 31 Mar 2015 13:00:09 +0000 Subject: [PATCH] move get_locale_list into system.php (single usage) --- src/www/system.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/www/system.php b/src/www/system.php index d9b8cdd7a..4723059a6 100644 --- a/src/www/system.php +++ b/src/www/system.php @@ -32,6 +32,14 @@ require_once("functions.inc"); require_once("filter.inc"); require_once("shaper.inc"); +function get_locale_list() +{ + $locales = array('en_US' => gettext('English')); + asort($locales); + return $locales; +} + + $pconfig['hostname'] = $config['system']['hostname']; $pconfig['domain'] = $config['system']['domain']; list($pconfig['dns1'],$pconfig['dns2'],$pconfig['dns3'],$pconfig['dns4']) = $config['system']['dnsserver'];