Update of /cvsroot/easymod/easymod/install/em_files/includes/em
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12652
Modified Files:
em_parser_text.php
Log Message:
File isn't loaded every time parse_header or parse_actions is called.
Index: em_parser_text.php
===================================================================
RCS file: /cvsroot/easymod/easymod/install/em_files/includes/em/em_parser_text.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** em_parser_text.php 4 Dec 2005 03:12:30 -0000 1.1
--- em_parser_text.php 9 Dec 2005 23:35:33 -0000 1.2
***************
*** 55,59 ****
*/
var $header = array();
!
/**
* Actions for the MOD
--- 55,59 ----
*/
var $header = array();
!
/**
* Actions for the MOD
***************
*** 63,66 ****
--- 63,72 ----
/**
+ * MOD has been loaded
+ * @type bool
+ */
+ var $mod_loaded;
+
+ /**
* Constructor
*
***************
*** 73,76 ****
--- 79,83 ----
$this->mod_contents = array();
$this->mod_lines = 0;
+ $this->mod_loaded = false;
/*
***************
*** 111,118 ****
function _load_mod()
{
! global $io;
! if(empty($io))
{
! $io = new_io();
}
--- 118,124 ----
function _load_mod()
{
! if ( $this->mod_loaded === true )
{
! return true;
}
***************
*** 135,138 ****
--- 141,145 ----
$this->mod_contents = preg_split("/\r?\n|\r/", $this->mod_contents);
$this->mod_lines = count($this->mod_contents);
+ $this->mod_loaded = true;
return true;
}
***************
*** 176,180 ****
'email' => $match[2],
'realname' => $match[3],
! 'website' => $match[4]);
}
else if ( $current_action == 'history' )
--- 183,187 ----
'email' => $match[2],
'realname' => $match[3],
! 'website' => $match[4]);
}
else if ( $current_action == 'history' )
***************
*** 466,474 ****
}
- function parse_sql()
- {
-
- }
-
//
// Just implemented real quick, probably better way to do this.
--- 473,476 ----
|