Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-5288

wrong colour of failure message during database backup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 3.0.0
    • 3.0.x
    • ACP
    • None
    • PHP Environment:
      Database:

      When you try to create a database backup but without having selected a table, you get an error message:

      You must select at least one table.

      This message is displayed as a success message with green background instead of an red error message.

      Fix:
      Change

      trigger_error($user->lang['TABLE_SELECT_ERROR'] . adm_back_link($this->u_action));   

      in acp_database.php to

      trigger_error($user->lang['TABLE_SELECT_ERROR'] . adm_back_link($this->u_action), E_USER_WARNING);   

      Edit:
      The same applies to

      trigger_error($user->lang['RESTORE_FAILURE'] . adm_back_link($this->u_action)); 

            DavidMJ DavidMJ
            Schumi Schumi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: