aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author3D-I <eataly3d@gmail.com>2019-08-12 21:14:58 +0200
committer3D-I <eataly3d@gmail.com>2019-08-12 21:15:54 +0200
commit37de0f96d1c2f52fe8702aa3638cc0f02f577a78 (patch)
tree4f0955b93bcf908c484220f22f39d306b19ed273
parent964c212f031ef7fcbd2e95d28218007830b5d184 (diff)
downloadforums-37de0f96d1c2f52fe8702aa3638cc0f02f577a78.tar
forums-37de0f96d1c2f52fe8702aa3638cc0f02f577a78.tar.gz
forums-37de0f96d1c2f52fe8702aa3638cc0f02f577a78.tar.bz2
forums-37de0f96d1c2f52fe8702aa3638cc0f02f577a78.tar.xz
forums-37de0f96d1c2f52fe8702aa3638cc0f02f577a78.zip
[ticket/16080] Use placeholder
PHPBB3-16080
-rw-r--r--phpBB/includes/acp/acp_styles.php3
-rw-r--r--phpBB/language/en/common.php2
2 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/acp/acp_styles.php b/phpBB/includes/acp/acp_styles.php
index 04cb1f15ef..123c8f0ad4 100644
--- a/phpBB/includes/acp/acp_styles.php
+++ b/phpBB/includes/acp/acp_styles.php
@@ -1123,9 +1123,10 @@ class acp_styles
*/
protected function read_style_cfg($dir)
{
+ // This should never happen, we give them a red warning because of its relevance.
if (!file_exists($this->styles_path . $dir . '/style.cfg'))
{
- trigger_error($this->user->lang['NO_STYLE_CFG'] . $dir, E_USER_WARNING);
+ trigger_error(sprintf($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 7d8f2589e2..26692c7b25 100644
--- a/phpBB/language/en/common.php
+++ b/phpBB/language/en/common.php
@@ -519,7 +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_STYLE_CFG' => 'Could not get the style configuration file for: %s',
'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.',