diff options
| author | 3D-I <eataly3d@gmail.com> | 2019-08-12 01:19:30 +0200 |
|---|---|---|
| committer | 3D-I <eataly3d@gmail.com> | 2019-08-12 01:20:33 +0200 |
| commit | 964c212f031ef7fcbd2e95d28218007830b5d184 (patch) | |
| tree | b69caa482b8ab8911c8dead187f38a65198cfa97 | |
| parent | 1de4a65e581b43a69c7d40ad705dbf752782fcff (diff) | |
| download | forums-964c212f031ef7fcbd2e95d28218007830b5d184.tar forums-964c212f031ef7fcbd2e95d28218007830b5d184.tar.gz forums-964c212f031ef7fcbd2e95d28218007830b5d184.tar.bz2 forums-964c212f031ef7fcbd2e95d28218007830b5d184.tar.xz forums-964c212f031ef7fcbd2e95d28218007830b5d184.zip | |
[ticket/16080] Provide a meaningful error message for deleted installed style
PHPBB3-16080
| -rw-r--r-- | phpBB/includes/acp/acp_styles.php | 2 | ||||
| -rw-r--r-- | phpBB/language/en/common.php | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_styles.php b/phpBB/includes/acp/acp_styles.php index b5507005b0..04cb1f15ef 100644 --- a/phpBB/includes/acp/acp_styles.php +++ b/phpBB/includes/acp/acp_styles.php @@ -1125,7 +1125,7 @@ class acp_styles { 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'); diff --git a/phpBB/language/en/common.php b/phpBB/language/en/common.php index 835030762c..7d8f2589e2 100644 --- a/phpBB/language/en/common.php +++ b/phpBB/language/en/common.php @@ -519,6 +519,7 @@ $lang = array_merge($lang, array( 'NO_FEED_ENABLED' => 'Feeds are not available on this board.', 'NO_FEED' => 'The requested feed is not available.', '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_SUCH_SEARCH_MODULE' => 'The specified search backend doesn’t exist.', 'NO_SUPPORTED_AUTH_METHODS' => 'No supported authentication methods.', |
