Skip to content

Commit fe367a9

Browse files
committed
Fix issue bcit-ci#1992
1 parent de00a69 commit fe367a9

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

system/libraries/Parser.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,20 @@ class CI_Parser {
5858
*/
5959
protected $CI;
6060

61+
// --------------------------------------------------------------------
62+
63+
/**
64+
* Class constructor
65+
*
66+
* @return void
67+
*/
68+
public function __construct()
69+
{
70+
$this->CI =& get_instance();
71+
}
72+
73+
// --------------------------------------------------------------------
74+
6175
/**
6276
* Parse a template
6377
*
@@ -71,7 +85,6 @@ class CI_Parser {
7185
*/
7286
public function parse($template, $data, $return = FALSE)
7387
{
74-
$this->CI =& get_instance();
7588
$template = $this->CI->load->view($template, $data, TRUE);
7689

7790
return $this->_parse($template, $data, $return);

0 commit comments

Comments
 (0)