Author Topic: [1.7.4 - 1.7.7] not possible edit media/* templates  (Read 8885 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
[1.7.4 - 1.7.7] not possible edit media/* templates
« 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);
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)