4images Forum & Community

4images Help / Hilfe => Bug Fixes & Patches => Topic started by: V@no on August 07, 2010, 05:49:43 PM

Title: [1.7.4 - 1.7.7] not possible edit media/* templates
Post by: V@no on August 07, 2010, 05:49:43 PM
When trying edit media/* templates (ACP -> Edit Template) 4images might return unpredictable results, such as error messages or template being saved in template directory instead of media/

In admin/templates.php find:
  $template_file_name = basename($template_file_name);

Replace with:
  $template_file_name = (strpos($template_file_name, 'media/') !== false ? 'media/' : '') . basename($template_file_name);