mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-30 12:18:43 +09:00
Merge pull request #1068 from mohabmes/master
Remove Tag-more from post content
This commit is contained in:
1 file changed
+5
-2
@@ -83,12 +83,15 @@ class Service
|
||||
|
||||
$pos = strpos($row->content, '<!--more-->');
|
||||
$excerpt = ($pos) ? substr($row->content, 0, $pos) : null;
|
||||
|
||||
// Remove <!--more--> from post content
|
||||
$content = str_replace("<!--more-->", "", $row->content);
|
||||
|
||||
$data = array(
|
||||
'id' => $row->id,
|
||||
'title' => $row->title,
|
||||
'description' => $row->description,
|
||||
'content' => $row->content,
|
||||
'content' => $content,
|
||||
'slug' => $row->slug,
|
||||
'image' => $row->image,
|
||||
'section' => $row->section,
|
||||
@@ -110,4 +113,4 @@ class Service
|
||||
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user