From 5c7547f430345b52cf5b70440addd4d3c685a1b8 Mon Sep 17 00:00:00 2001 From: zero Date: Thu, 18 Sep 2008 05:09:07 +0000 Subject: [PATCH] git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4518 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- config/func.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/func.inc.php b/config/func.inc.php index 2c81afcd3..5a81b6c01 100644 --- a/config/func.inc.php +++ b/config/func.inc.php @@ -208,8 +208,8 @@ * @param tail 잘라졌을 경우 문자열의 제일 뒤에 붙을 꼬리 * @return string **/ - function cut_str($string,$cut_size,$tail = '...') { - if(!$string) return $string; + function cut_str($string,$cut_size=0,$tail = '...') { + if($cut_size<1 || !$string) return $string; $char_width = Array(5,10,11,16,14,16,16,10,11,11,12,13,10,13,10,12,13,13,13,13,13,13,13,13,13,13,10,10,14,13,14,13,16,15,15,16,15,15,14,16,15,8,13,15,14,16,16,16,15,16,15,15,14,16,15,16,16,15,15,13,16,13,13,11,10,14,14,14,14,14,10,14,14,8,9,13,8,16,14,15,14,14,10,14,10,14,13,16,14,13,14,14,14,14,16); $unicode_width = 21;