[ticket/16080] Provide a meaningful error message for deleted installed style

PHPBB3-16080
This commit is contained in:
3D-I 2019-08-12 01:19:30 +02:00
parent 1de4a65e58
commit 964c212f03
2 changed files with 2 additions and 1 deletions

View file

@ -1125,7 +1125,7 @@ class acp_styles
{ {
if (!file_exists($this->styles_path . $dir . '/style.cfg')) if (!file_exists($this->styles_path . $dir . '/style.cfg'))
{ {
trigger_error('NO_STYLE_DATA', E_USER_ERROR); trigger_error($this->user->lang['NO_STYLE_CFG'] . $dir, E_USER_WARNING);
} }
static $required = array('name', 'phpbb_version', 'copyright'); static $required = array('name', 'phpbb_version', 'copyright');

View file

@ -519,6 +519,7 @@ $lang = array_merge($lang, array(
'NO_FEED_ENABLED' => 'Feeds are not available on this board.', 'NO_FEED_ENABLED' => 'Feeds are not available on this board.',
'NO_FEED' => 'The requested feed is not available.', 'NO_FEED' => 'The requested feed is not available.',
'NO_STYLE_DATA' => 'Could not get style data', 'NO_STYLE_DATA' => 'Could not get style data',
'NO_STYLE_CFG' => 'Could not get the style configuration file for: ',
'NO_SUBJECT' => 'No subject specified', // Used for posts having no subject defined but displayed within management pages. 'NO_SUBJECT' => 'No subject specified', // Used for posts having no subject defined but displayed within management pages.
'NO_SUCH_SEARCH_MODULE' => 'The specified search backend doesnt exist.', 'NO_SUCH_SEARCH_MODULE' => 'The specified search backend doesnt exist.',
'NO_SUPPORTED_AUTH_METHODS' => 'No supported authentication methods.', 'NO_SUPPORTED_AUTH_METHODS' => 'No supported authentication methods.',