mirror of
https://github.com/typecho/typecho.git
synced 2025-03-23 19:40:22 +01:00
fixed #64
This commit is contained in:
parent
244a39439d
commit
5169a2a460
@ -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, '...');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user