Skip to content

Commit

Permalink
Fix issue bcit-ci#1992
Browse files Browse the repository at this point in the history
  • Loading branch information
narfbg committed Nov 12, 2012
1 parent de00a69 commit fe367a9
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion system/libraries/Parser.php
Expand Up @@ -58,6 +58,20 @@ class CI_Parser {
*/
protected $CI;

// --------------------------------------------------------------------

/**
* Class constructor
*
* @return void
*/
public function __construct()
{
$this->CI =& get_instance();
}

// --------------------------------------------------------------------

/**
* Parse a template
*
Expand All @@ -71,7 +85,6 @@ class CI_Parser {
*/
public function parse($template, $data, $return = FALSE)
{
$this->CI =& get_instance();
$template = $this->CI->load->view($template, $data, TRUE);

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

0 comments on commit fe367a9

Please sign in to comment.