mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
using egw_db->capabilities[egw_db::CASE_INSENSITIVE_LIKE]
This commit is contained in:
parent
8d93ce6fbb
commit
7acd58f2f4
@ -965,8 +965,7 @@ class translation
|
|||||||
*/
|
*/
|
||||||
static function get_message_id($translation,$app=null,$lang=null)
|
static function get_message_id($translation,$app=null,$lang=null)
|
||||||
{
|
{
|
||||||
$like = self::$db->Type == 'pgsql' ? 'ILIKE' : 'LIKE';
|
$where = array('content '.self::$db->capabilities[egw_db::CAPABILITY_CASE_INSENSITIV_LIKE].' '.self::$db->quote($translation));
|
||||||
$where = array('content '.$like.' '.self::$db->quote($translation)); // like to be case-insensitive
|
|
||||||
if ($app) $where['app_name'] = $app;
|
if ($app) $where['app_name'] = $app;
|
||||||
if ($lang) $where['lang'] = $lang;
|
if ($lang) $where['lang'] = $lang;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user