summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Dörre <felix@dogcraft.de>2014-06-11 19:49:42 +0200
committerFelix Dörre <felix@dogcraft.de>2014-06-11 19:49:42 +0200
commit6b1cd2a57b0aaa88374b1098df40cc6f73cdff5d (patch)
treec4c92cda8ba91011e0cfe749ec65e651ada9977e
parent0730c9df3eb440205d7963e3c0762765d9b47031 (diff)
downloadcacert-devel-6b1cd2a57b0aaa88374b1098df40cc6f73cdff5d.tar.gz
cacert-devel-6b1cd2a57b0aaa88374b1098df40cc6f73cdff5d.tar.xz
cacert-devel-6b1cd2a57b0aaa88374b1098df40cc6f73cdff5d.zip
bug-1280: Variable naming, formatting, php-syntax-error
-rw-r--r--pages/wot/9.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/pages/wot/9.php b/pages/wot/9.php
index d04c4fa..4bb5504 100644
--- a/pages/wot/9.php
+++ b/pages/wot/9.php
@@ -50,14 +50,14 @@
<tr>
<td class="DataTD"><?=_("Language")?>:</td>
<?
- $parts = explode("_", $userlang ,2);
- if(count($parts == 2)){
- $printlang = array_search( strtolower($parts[0])."_".strtoupper($parts[1]), L10n::$locales);
+ $userlang = explode("_", $userlang, 2);
+ if(count($userlang) == 2){
+ $printlang = array_search(strtolower($userlang[0]) . "_" . strtoupper($userlang[1]), L10n::$locales);
if($printlang === false){
- $printlang = $parts[0];
+ $printlang = $userlang[0];
}
}else{
- $printlang = strtolower($parts[0]);
+ $printlang = strtolower($userlang[0]);
}
?>
<td class="DataTD" align="left"><? printf(_("%s prefers to be contacted in %s"), sanitizeHTML($user['fname']), L10n::$translations[$printlang]) ?></td>