#18312698 * 큐브리드에서 문서 제목 색상 값을 잘못 가져오는 문제 수정

* title_color 컬럼 타입 변경 : char(7) -> varchar(7)
  * 기존 사용환경을 고려, title_color 반환시 trim()

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6792 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
bnu 2009-09-18 00:51:03 +00:00
parent 6a7f82bfaf
commit a35a849f04
2 changed files with 3 additions and 2 deletions

View file

@ -229,8 +229,9 @@
$title = $this->getTitleText($cut_size, $tail);
$attrs = array();
$this->add('title_color', trim($this->get('title_color')));
if($this->get('title_bold')=='Y') $attrs[] = "font-weight:bold;";
if($this->get('title_color')&&$this->get('title_color')!='N') $attrs[] = "color:#".$this->get('title_color');
if($this->get('title_color') && $this->get('title_color') != 'N') $attrs[] = "color:#".$this->get('title_color');
if(count($attrs)) return sprintf("<span style=\"%s\">%s</span>", implode(';',$attrs), htmlspecialchars($title));
else return htmlspecialchars($title);