not sure why you are having to use regex ... but at this stage of the game there must be a better way !!

thesavior

03-20-2007, 05:44 AM

Okay, well that fixed that error and revealed a new one.

updated class file:

class tpl_parse
{
public $tplname; // What template to use
public $pagename; //What page to load
public $tpl; //Stores template info.
public $variable = array(); // Stores information about the variable in use