* adjust the diff of desc, spec fields.

This commit is contained in:
wangchunsheng
2010-02-27 01:27:25 +00:00
parent 5cbfd55095
commit 2d05da7d57
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -388,7 +388,7 @@ EOT;
if($value != $old->$key)
{
$diff = '';
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);
if(substr_count($value, "\n") > 1 or substr_count($old->$key, "\n") > 1 or strpos('name,title,desc,spec', strtolower($key)) !== false) $diff = self::diff($old->$key, $value);
$changes[] = array('field' => $key, 'old' => $old->$key, 'new' => $value, 'diff' => $diff);
}
}
+1
View File
@@ -52,6 +52,7 @@ $lang->selectAll = '全选';
$lang->attatch = '附件';
$lang->reverse = '(切换顺序)';
$lang->addFiles = '上传了附件 ';
$lang->files = '附件 ';
/* 主导航菜单。*/
$lang->menu->index = '首页|index|index';