isset and true

This commit is contained in:
Ian 2015-08-17 17:26:13 +02:00
parent a0527ca81b
commit ea08cd429a

View File

@ -14,7 +14,7 @@ if (!defined('serendipity_LANG_LOADED') || serendipity_LANG_LOADED !== true) {
$charset = serendipity_getCharset(); $charset = serendipity_getCharset();
// The following variable can be set in serendipity_config_local.inc.php to force your templates being able to use language override includes // The following variable can be set in serendipity_config_local.inc.php to force your templates being able to use language override includes
if (isset($serendipity['useTemplateLanguage'])) { if (isset($serendipity['useTemplateLanguage']) && $serendipity['useTemplateLanguage'] === true) {
if (defined('S9Y_DATA_PATH')) { if (defined('S9Y_DATA_PATH')) {
@include_once (S9Y_DATA_PATH . 'templates/' . $serendipity['template'] . '/' . $charset . 'lang_' . $serendipity['lang'] . '.inc.php'); @include_once (S9Y_DATA_PATH . 'templates/' . $serendipity['template'] . '/' . $charset . 'lang_' . $serendipity['lang'] . '.inc.php');
@include_once (S9Y_DATA_PATH . 'templates/' . $serendipity['template'] . '/lang_en.inc.php'); @include_once (S9Y_DATA_PATH . 'templates/' . $serendipity['template'] . '/lang_en.inc.php');