Author Topic: [1.7 - 1.7.6] Wrong message if image was not deleted from database (in ACP)  (Read 13952 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 :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Thank you ch€ri{Bi}² for discovering and reporting this bug.

If something went wrong while deleting an image in ACP (Admin Control Panel) it will show a "success" message instead of "error".

To fix that find in admin/images.php (note, this is only a part of the line):
Code: [Select]
$error_log[] = "<b>".$lang['image_delete_success']
Replace it with:
Code: [Select]
$error_log[] = "<b>".$lang['image_delete_error']

This bug only affects default, unmodified admin/images.php
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)