mirror of
https://github.com/getgrav/grav.git
synced 2026-02-22 22:51:13 +01:00
Utilize new summary.delimiter setting rather than constant
This commit is contained in:
@@ -407,10 +407,11 @@ class Page
|
||||
}
|
||||
|
||||
// Handle summary divider
|
||||
$divider_pos = strpos($this->content, '<p>'.SUMMARY_DELIMITER.'</p>');
|
||||
$delimiter = self::$grav['config']->get('site.summary.delimiter', '===');
|
||||
$divider_pos = strpos($this->content, "<p>{$delimiter}</p>");
|
||||
if ($divider_pos !== false) {
|
||||
$this->summary_size = $divider_pos;
|
||||
$this->content = str_replace('<p>'.SUMMARY_DELIMITER.'</p>', '', $this->content);
|
||||
$this->content = str_replace("<p>{$delimiter}</p>", '', $this->content);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user