mirror of
https://github.com/Mowie/Mowie
synced 2024-06-12 21:59:38 +00:00
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:
parent
a151256905
commit
7af66fb9b8
|
@ -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'];
|
||||
}
|
||||
|
|
|
@ -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()"/>
|
||||
|
|
Loading…
Reference in New Issue
Block a user