Skip to content

Commit

Permalink
Fixed @more bug wouldn't be replaced when there were headings.
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
  • Loading branch information
jasonlewis committed Nov 6, 2012
1 parent 2e8ea52 commit 5d1095d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/article.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ public function parse()
if (empty($matches))
{
preg_match('/(.*?)@more/s', $this->body, $matches);

$this->body = str_replace('@more', '', $this->body);
}

$this->body = str_replace('@more', '', $this->body);

$this->intro = ( ! empty($matches) ? $matches[1] : $this->body);
}
else
Expand Down

0 comments on commit 5d1095d

Please sign in to comment.