summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2014-06-21 17:37:44 +0200
committerMichael Tänzer <neo@nhng.de>2014-06-21 17:37:44 +0200
commit5118f86c68062c38c2b5cb419c526819843d2ea6 (patch)
tree8b83a90422ccebf1ad4b0c2b46d765f2de861483
parent6b1cd2a57b0aaa88374b1098df40cc6f73cdff5d (diff)
downloadcacert-devel-5118f86c68062c38c2b5cb419c526819843d2ea6.tar.gz
cacert-devel-5118f86c68062c38c2b5cb419c526819843d2ea6.tar.xz
cacert-devel-5118f86c68062c38c2b5cb419c526819843d2ea6.zip
Revert "bug-1280: Variable naming, formatting, php-syntax-error"
This reverts commit 6b1cd2a57b0aaa88374b1098df40cc6f73cdff5d.
-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 4bb5504..d04c4fa 100644
--- a/pages/wot/9.php
+++ b/pages/wot/9.php
@@ -50,14 +50,14 @@
<tr>
<td class="DataTD"><?=_("Language")?>:</td>
<?
- $userlang = explode("_", $userlang, 2);
- if(count($userlang) == 2){
- $printlang = array_search(strtolower($userlang[0]) . "_" . strtoupper($userlang[1]), L10n::$locales);
+ $parts = explode("_", $userlang ,2);
+ if(count($parts == 2)){
+ $printlang = array_search( strtolower($parts[0])."_".strtoupper($parts[1]), L10n::$locales);
if($printlang === false){
- $printlang = $userlang[0];
+ $printlang = $parts[0];
}
}else{
- $printlang = strtolower($userlang[0]);
+ $printlang = strtolower($parts[0]);
}
?>
<td class="DataTD" align="left"><? printf(_("%s prefers to be contacted in %s"), sanitizeHTML($user['fname']), L10n::$translations[$printlang]) ?></td>