This commit is contained in:
joyqi 2013-11-10 01:19:02 +08:00
parent 244a39439d
commit 5169a2a460

View File

@ -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, '...');
}