summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-08-24 11:23:33 +0200
committerAleksander Machniak <alec@alec.pl>2014-08-24 11:23:33 +0200
commit75bbada03b0e616248ec3458d1a6ee98bfc03659 (patch)
tree0e37d9caaec154469bf9ce4923b5738bd421a469 /program/include
parente35eab5f946fbdca688040da61d33a1a4153f968 (diff)
Remove code for PHP<5.3, use PHP_VERSION_ID instead of version_compare() for version checks
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcmail.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index 0c41c1598..52b53e9d9 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -173,7 +173,7 @@ class rcmail extends rcube
setlocale(LC_ALL, $lang . '.utf8', $lang . '.UTF-8', 'en_US.utf8', 'en_US.UTF-8');
// workaround for http://bugs.php.net/bug.php?id=18556
- if (version_compare(PHP_VERSION, '5.5.0', '<') && in_array($lang, array('tr_TR', 'ku', 'az_AZ'))) {
+ if (PHP_VERSION_ID < 50500 && in_array($lang, array('tr_TR', 'ku', 'az_AZ'))) {
setlocale(LC_CTYPE, 'en_US.utf8', 'en_US.UTF-8');
}
}