That section should look like
PHP Code:
while ($file = $dir->read()) {
if (is_dir(DIR_FS_CATALOG_TEMPLATES . $file) && strtoupper($file) != 'CVS' && $file != 'template_default') {
if (file_exists(DIR_FS_CATALOG_TEMPLATES . $file . '/template_info.php')) {
require(DIR_FS_CATALOG_TEMPLATES . $file . '/template_info.php');
$template_info[$file] = array('name' => $template_name,
'version' => $template_version,
'author' => $template_author,
'description' => $template_description,
'screenshot' => $template_screenshot);
}
}
}
The error described sounds like one of the opening { is missing, but that is unlikely. What do you have above your posted lines?