From 9bf3cf2e2b770db17953a8db87ccfa17e438aa2e Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Tue, 18 Feb 2014 16:39:46 +0200 Subject: [ci skip] Clean-up following PR #2864 --- system/libraries/Calendar.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'system/libraries') diff --git a/system/libraries/Calendar.php b/system/libraries/Calendar.php index b9c01ee68..23c389e4b 100644 --- a/system/libraries/Calendar.php +++ b/system/libraries/Calendar.php @@ -59,7 +59,7 @@ class CI_Calendar { * @var mixed */ public $template = ''; - + /** * Replacements array for template * @@ -532,11 +532,11 @@ class CI_Calendar { { return $this; } - + if (is_string($this->template)) { $today = array('cal_cell_start_today', 'cal_cell_content_today', 'cal_cell_no_content_today', 'cal_cell_end_today'); - + foreach (array('table_open', 'table_close', 'heading_row_start', 'heading_previous_cell', 'heading_title_cell', 'heading_next_cell', 'heading_row_end', 'week_row_start', 'week_day_cell', 'week_row_end', 'cal_row_start', 'cal_cell_start', 'cal_cell_content', 'cal_cell_no_content', 'cal_cell_blank', 'cal_cell_end', 'cal_row_end', 'cal_cell_start_today', 'cal_cell_content_today', 'cal_cell_no_content_today', 'cal_cell_end_today', 'cal_cell_start_other', 'cal_cell_other', 'cal_cell_end_other') as $val) { if (preg_match('/\{'.$val.'\}(.*?)\{\/'.$val.'\}/si', $this->template, $match)) @@ -553,7 +553,7 @@ class CI_Calendar { { $this->replacements = array_merge($this->replacements, $this->template); } - + return $this; } -- cgit v1.2.3-24-g4f1b