Merge branch 'ent-7373-CSV-de-las-graficas-de-modulos-se-generan-vacios' into 'develop'

Fixed errors charts in open

See merge request artica/pandorafms!4062
This commit is contained in:
Daniel Rodriguez 2021-04-26 09:08:48 +00:00
commit 1b3410af2f
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>";
}