Fixed errors charts in open

This commit is contained in:
Daniel Barbero Martin 2021-04-23 08:58:23 +02:00
parent f3f44ebbdd
commit fc2da38cbd
2 changed files with 3 additions and 4 deletions

View File

@ -36,9 +36,8 @@ global $config;
$user_language = get_user_language($config['id_user']);
$l10n = null;
if (file_exists('../languages/'.$user_language.'.mo') === true) {
$l10n = new gettext_reader(
new CachedFileReader('../languages/'.$user_language.'.mo')
);
$cf = new CachedFileReader('../languages/'.$user_language.'.mo');
$l10n = new gettext_reader($cf);
$l10n->load_tables();
}

View File

@ -369,7 +369,7 @@ function menu_graph(
}
// Export buttons.
if ($params['show_export_csv']) {
if ($params['show_export_csv'] && enterprise_installed() === true) {
$return .= "<a href='javascript:'><img id='menu_export_csv_$graph_id' src='".$params['homeurl'].'images/csv_grey.png'."' alt='".__('Export to CSV')."' title='".__('Export to CSV')."'></a>";
}