aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorSerg <dv_serg@mail.ru>2010-04-30 22:16:26 +0400
committerSerg <dv_serg@mail.ru>2010-04-30 22:16:26 +0400
commitef1073fe24628948d40c381d9c9ec56714edba91 (patch)
treed692838ca29030a82c564e5ad9158ab6b82fa688 /config
parent2267b1f065f8ea6f87a8c15ab5ef1e0ec92faaec (diff)
downloadpfsense-packages-ef1073fe24628948d40c381d9c9ec56714edba91.tar.gz
pfsense-packages-ef1073fe24628948d40c381d9c9ec56714edba91.tar.bz2
pfsense-packages-ef1073fe24628948d40c381d9c9ec56714edba91.zip
Havp template path bug fix
Diffstat (limited to 'config')
-rw-r--r--config/havp/havp.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/config/havp/havp.inc b/config/havp/havp.inc
index 963f0df2..f32d2bcc 100644
--- a/config/havp/havp.inc
+++ b/config/havp/havp.inc
@@ -526,8 +526,9 @@ function havp_convert_pfxml_xml()
# proxy
$havp_config[F_PROXYBINDIFACE] = 'localhost';
# language template files path
- $havp_config[F_TEMPLATEPATH] = ( file_exists(HVDEF_TEMPLATES_EX) ? HVDEF_TEMPLATES_EX : HVDEF_TEMPLATES );
- $havp_config[F_TEMPLATEPATH] .= ( !empty($havp_config[F_LANGUAGE]) ? "/{$havp_config[F_LANGUAGE]}" : "/en" );
+ $lng = $havp_config[F_LANGUAGE] ? $havp_config[F_LANGUAGE] : "en";
+ $havp_config[F_TEMPLATEPATH] = ( file_exists(HVDEF_TEMPLATES_EX . "/$lng") ? HVDEF_TEMPLATES_EX : HVDEF_TEMPLATES );
+ $havp_config[F_TEMPLATEPATH] .= "/$lng";
#
# =-= HVFORM_AVSET =-=
# av settings