Skip to content

Commit

Permalink
[2.5.18] Fix readtime issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed Aug 5, 2022
1 parent 17c0f30 commit 96620a3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 56 deletions.
55 changes: 0 additions & 55 deletions .idea/workspace.xml

This file was deleted.

2 changes: 1 addition & 1 deletion framework/article.php
Expand Up @@ -160,7 +160,7 @@ public function render($position = 'above-title')
public function renderReadTime()
{
if ($this->showReadTime()) {
$this->article->readtime = $this->calculateReadTime($this->article->fulltext);
$this->article->readtime = $this->calculateReadTime($this->article->introtext.$this->article->fulltext);
Astroid\Framework::getDocument()->include('blog.modules.readtime', ['article' => $this->article]);
}
}
Expand Down

0 comments on commit 96620a3

Please sign in to comment.