From 7acd58f2f4378c25fd8b14bc388af32611a1b269 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 22 Jun 2010 16:54:47 +0000 Subject: [PATCH] using egw_db->capabilities[egw_db::CASE_INSENSITIVE_LIKE] --- phpgwapi/inc/class.translation.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.translation.inc.php b/phpgwapi/inc/class.translation.inc.php index 697c00e754..de0a762e7d 100644 --- a/phpgwapi/inc/class.translation.inc.php +++ b/phpgwapi/inc/class.translation.inc.php @@ -965,8 +965,7 @@ class translation */ static function get_message_id($translation,$app=null,$lang=null) { - $like = self::$db->Type == 'pgsql' ? 'ILIKE' : 'LIKE'; - $where = array('content '.$like.' '.self::$db->quote($translation)); // like to be case-insensitive + $where = array('content '.self::$db->capabilities[egw_db::CAPABILITY_CASE_INSENSITIV_LIKE].' '.self::$db->quote($translation)); if ($app) $where['app_name'] = $app; if ($lang) $where['lang'] = $lang;