From e232bf470c63e375df7ea792732bb3689be57476 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Sun, 24 Jan 2010 18:58:05 +0100 Subject: [PATCH] DibiFluent: clause() argument can be in upper-case --- dibi/libs/DibiFluent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dibi/libs/DibiFluent.php b/dibi/libs/DibiFluent.php index 84e11d8f..c67ee2f1 100644 --- a/dibi/libs/DibiFluent.php +++ b/dibi/libs/DibiFluent.php @@ -449,7 +449,7 @@ class DibiFluent extends DibiObject implements IDataSource $s .= 'By'; trigger_error("Did you mean '$s'?", E_USER_NOTICE); } - return strtoupper(preg_replace('#[A-Z]#', ' $0', $s)); + return strtoupper(preg_replace('#[a-z](?=[A-Z])#', '$0 ', $s)); }