im trying to use the zen_trunc_string on the tpl modules downloads page so that i can limit the characters in my filenames for download as they are stretching the tables on that page and altering the layout.
the original was this:
Code:
$is_downloadable = ( (file_exists(DIR_FS_DOWNLOAD . $downloads->fields['orders_products_filename']) && (($downloads->fields['download_count'] > 0 && $download_timestamp > time()) || $downloads->fields['download_maxdays'] == 0)) ) ? true : false;
and i have changed it to this:
Code:
$is_downloadable = ( (file_exists((zen_trunc_string(DIR_FS_DOWNLOAD . $downloads->fields['orders_products_filename'], 25))) && (($downloads->fields['download_count'] > 0 && $download_timestamp > time()) || $downloads->fields['download_maxdays'] == 0)) ) ? true : false;
but it doesnt seem to be working? am i doing something wrong?
Bookmarks