From a9701e4e229ad7d3875c73a82c86bd855e517251 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Fri, 26 Feb 2010 02:58:01 +0000 Subject: [PATCH] * adjust the diff of title and name fields. --- module/common/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/common/control.php b/module/common/control.php index ceebc32647..b5f2e37947 100644 --- a/module/common/control.php +++ b/module/common/control.php @@ -388,7 +388,7 @@ EOT; if($value != $old->$key) { $diff = ''; - if(substr_count($value, "\n") > 1 or substr_count($old->$key, "\n") > 1) $diff = self::diff($old->$key, $value); + if(substr_count($value, "\n") > 1 or substr_count($old->$key, "\n") > 1 or strtolower($key) == 'name' or strtolower($key) == 'title') $diff = self::diff($old->$key, $value); $changes[] = array('field' => $key, 'old' => $old->$key, 'new' => $value, 'diff' => $diff); } }