I don't have a functioning test site on my new computer yet, so I can't debug it myself. This is the corresponding code that works in Categories Dressing:
PHP Code:
//display image if exists for category name in current language - with title tag
if (file_exists(DIR_WS_TEMPLATE . 'buttons/' . $_SESSION['language'] . '/catimg' . $current_path . CAT_NAME_IMG_EXT)) {
$cat_name_display = zen_image(DIR_WS_TEMPLATE . 'buttons/' . $_SESSION['language'] . '/catimg' . $current_path . CAT_NAME_IMG_EXT, '', '', '', 'title="' . $cat_name_display . '"');
Comparison shows that I missed the second closing ) in this line:
PHP Code:
if (file_exists(DIR_WS_TEMPLATE . 'buttons/' . $_SESSION['language'] . '/cat_tab' . $categories_tab->fields['categories_id'] . '.gif') {
It should be
PHP Code:
if (file_exists(DIR_WS_TEMPLATE . 'buttons/' . $_SESSION['language'] . '/cat_tab' . $categories_tab->fields['categories_id'] . '.gif')) {