# HG changeset patch # User Dan # Date 1201579652 18000 # Node ID b6faa6d6ade238120d6d02ef91fdd95d767d1dc9 # Parent 2c6ef58e315a8782ec930498fec6c35d75fe4e27 Fixed case where HTML comments were getting stripped when opening tag not followed by whitespace ( was stripped, was not, neither is stripped now) diff -r 2c6ef58e315a -r b6faa6d6ade2 includes/template.php --- a/includes/template.php Mon Jan 28 23:06:38 2008 -0500 +++ b/includes/template.php Mon Jan 28 23:07:32 2008 -0500 @@ -153,36 +153,7 @@ { $this->add_header(' '); } @@ -907,7 +878,7 @@ // This is a bad coding practice so this function will always be picky. if ( !$this->theme ) { - die('$template->extract_vars(): theme not yet loaded, so we can\'t open template files yet...this is a bug and should be reported.

Backtrace, most recent call first:
'.enano_debug_print_backtrace(true).'
'); + die('$template->extract_vars(): theme (' . $this->theme . ') not yet loaded, so we can\'t open template files yet...this is a bug and should be reported.

Backtrace, most recent call first:
'.enano_debug_print_backtrace(true).'
'); } // Full pathname of template file @@ -1072,7 +1043,7 @@ // // System messages - $text = preg_replace('//is', '\' . $this->tplWikiFormat($paths->sysMsg(\'\\1\')) . \'', $text); + $text = preg_replace('//is', '\' . $template->tplWikiFormat($paths->sysMsg(\'\\1\')) . \'', $text); // Template variables $text = preg_replace('/\{([A-z0-9_-]+?)\}/is', '\' . $this->tpl_strings[\'\\1\'] . \'', $text);