From eb4eafd91547880c145a21bf0c6d46426fd2aff9 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Mon, 2 Feb 2015 17:25:51 -0700 Subject: [PATCH] Utilize new summary.delimiter setting rather than constant --- system/src/Grav/Common/Page/Page.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } }