Bugfix: Notice: Undefined offset: 0 in /media/storage/hdd/Server/SelfCMS/Mowie-Github/apps/sidebar/genConf.php on line 32

Fix: Include Language Files when displaying an app in System Config
This commit is contained in:
kolaente 2017-02-04 17:31:55 +01:00
parent a151256905
commit 7af66fb9b8
2 changed files with 7 additions and 1 deletions

View File

@ -91,6 +91,10 @@ tinymce();
require $appUri . $app . '/config.php';
if (isset($_CONF['general_conf']) && $_CONF['general_conf'] != '' && file_exists($appUri . $app . '/' . $_CONF['general_conf']))
{
if(file_exists($appUri . $app . '/lang/') && is_dir($appUri . $app . '/lang/'))
{
$lang->setLangFolder($appUri . $app . '/lang/');
}
echo '<i class="divider"></i>';
require $appUri . $app . '/' . $_CONF['general_conf'];
}

View File

@ -29,7 +29,9 @@ else
$db->get();
$active = '';
if(!$db->data[0]['active']) $active = ' selected';
if(isset($db->data[0])) {
if(!$db->data[0]['active']) $active = ' selected';
}
?>
<p>
<input type="checkbox" name="active" value="y" id="activeswitch" onchange="toggleTextField()"/>