Skip to content
Browse files

Fix issue #1992

  • Loading branch information...
1 parent de00a69 commit fe367a9c56f11cc779797e579b2b58c0d96ecf7b @narfbg narfbg committed
Showing with 14 additions and 1 deletion.
  1. +14 −1 system/libraries/Parser.php
View
15 system/libraries/Parser.php
@@ -58,6 +58,20 @@ class CI_Parser {
*/
protected $CI;
+ // --------------------------------------------------------------------
+
+ /**
+ * Class constructor
+ *
+ * @return void
+ */
+ public function __construct()
+ {
+ $this->CI =& get_instance();
+ }
+
+ // --------------------------------------------------------------------
+
/**
* Parse a template
*
@@ -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);

0 comments on commit fe367a9

Please sign in to comment.
Something went wrong with that request. Please try again.