diff --git a/system/src/Grav/Common/Page/Page.php b/system/src/Grav/Common/Page/Page.php index 3f2dcc0dc5..7a565c6106 100644 --- a/system/src/Grav/Common/Page/Page.php +++ b/system/src/Grav/Common/Page/Page.php @@ -407,10 +407,11 @@ public function content($var = null) } // Handle summary divider - $divider_pos = strpos($this->content, '

'.SUMMARY_DELIMITER.'

'); + $delimiter = self::$grav['config']->get('site.summary.delimiter', '==='); + $divider_pos = strpos($this->content, "

{$delimiter}

"); if ($divider_pos !== false) { $this->summary_size = $divider_pos; - $this->content = str_replace('

'.SUMMARY_DELIMITER.'

', '', $this->content); + $this->content = str_replace("

{$delimiter}

", '', $this->content); } }