]> git.sur5r.net Git - contagged/blobdiff - inc/template.php
nicer error display
[contagged] / inc / template.php
index 6042c7b9a75d89c1cad3fdb3bf6aeb455658c6de..dc913bd07435df1397f9335dcae2996cbc1d26d5 100644 (file)
@@ -27,6 +27,11 @@ function tpl_std(){
   $smarty->assign('lang',$lang);
   $smarty->assign('fields',$FIELDS);
   $smarty->assign('lettertabs',explode(' ',$lang['lettertabs']));
+
+  if(isset($FIELDS['country'])){
+      include dirname(__FILE__).'/iso3166.php';
+      $smarty->assign('iso3166',$iso3166);
+  }
 }
 
 /**
@@ -112,9 +117,9 @@ function tpl_ldaperror($message=""){
   if($errno){
     $__LDAPERROR__ .= ldap_err2str($errno);
     if(!empty($message)){
-      $__LDAPERROR__ .= "($message)";
+      $__LDAPERROR__ .= " ($message)";
     }elseif($errno == 4){
-      $__LDAPERROR__ .= "(You need to increase this limit in your server config)";
+      $__LDAPERROR__ .= " (You need to increase this limit in your server config)";
     }
     $__LDAPERROR__ .= '<br />';
   }