fixed #64
This commit is contained in:
@@ -70,7 +70,7 @@ class Widget_Abstract_Contents extends Widget_Abstract
|
||||
*/
|
||||
protected function ___description()
|
||||
{
|
||||
$plainTxt = trim(strip_tags($this->text));
|
||||
$plainTxt = str_replace("\n", '', trim(strip_tags($this->excerpt)));
|
||||
$plainTxt = $plainTxt ? $plainTxt : $this->title;
|
||||
return Typecho_Common::subStr($plainTxt, 0, 100, '...');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user