include language when install a theme

This commit is contained in:
Diego Najar 2019-01-04 14:21:15 +01:00
parent 3564ab1d8f
commit 7ae0a559a3
2 changed files with 5 additions and 7 deletions

View File

@ -2,12 +2,6 @@
echo Bootstrap::pageTitle(array('title'=>$L->g('Themes'), 'icon'=>'eye'));
echo Bootstrap::link(array(
'title'=>$L->g('Configure Blocks'),
'href'=>HTML_PATH_ADMIN_ROOT.'blocks',
'icon'=>'box'
));
echo '
<table class="table mt-3">
<thead>
@ -31,6 +25,10 @@ foreach ($themes as $theme) {
if ($theme['dirname']!=$site->theme()) {
echo '<a href="'.HTML_PATH_ADMIN_ROOT.'install-theme/'.$theme['dirname'].'">'.$L->g('Activate').'</a>';
} else {
if (Sanitize::pathFile(PATH_THEMES.$theme['dirname'].DS.'blocks.php')) {
echo '<a href="'.HTML_PATH_ADMIN_ROOT.'blocks'.'">'.$L->g('Configure Blocks').'</a>';
}
}
echo '

View File

@ -794,7 +794,7 @@ function getTag($key) {
function activateTheme($themeDirectory) {
global $site;
global $syslog;
global $L;
global $L, $language;
global $blocks;
if (Sanitize::pathFile(PATH_THEMES.$themeDirectory)) {