import theme à l'installation
This commit is contained in:
parent
6266ab4ff7
commit
c3ae90b746
|
@ -932,15 +932,7 @@ class theme extends common {
|
|||
*/
|
||||
|
||||
public function import($zipName = '') {
|
||||
// Autorisation
|
||||
$group = $this->getUser('group');
|
||||
if ($group === false ) $group = 0;
|
||||
if( $group < theme::$actions['import'] ) {
|
||||
// Valeurs en sortie
|
||||
$this->addOutput([
|
||||
'access' => false
|
||||
]);
|
||||
} else {
|
||||
// Pas de sécurité car cette fonction est utilisée à l'installation
|
||||
// Lexique
|
||||
include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php');
|
||||
|
||||
|
@ -1006,7 +998,6 @@ class theme extends common {
|
|||
|
||||
return (['success' => false, 'notification' => $text['core_theme']['import'][4]]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue