mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
#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:
parent
6a7f82bfaf
commit
a35a849f04
2 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<column name="is_secret" type="char" size="1" default="N" notnull="notnull" index="idx_is_secret" />
|
||||
<column name="title" type="varchar" size="250" />
|
||||
<column name="title_bold" type="char" size="1" default="N" notnull="notnull" />
|
||||
<column name="title_color" type="char" size="7" />
|
||||
<column name="title_color" type="varchar" size="7" />
|
||||
<column name="content" type="bigtext" notnull="notnull" />
|
||||
<column name="readed_count" type="number" size="11" default="0" notnull="notnull" index="idx_readed_count" />
|
||||
<column name="voted_count" type="number" size="11" default="0" notnull="notnull" index="idx_voted_count" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue