mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Fixed errors charts in open
This commit is contained in:
parent
f3f44ebbdd
commit
fc2da38cbd
@ -36,9 +36,8 @@ global $config;
|
|||||||
$user_language = get_user_language($config['id_user']);
|
$user_language = get_user_language($config['id_user']);
|
||||||
$l10n = null;
|
$l10n = null;
|
||||||
if (file_exists('../languages/'.$user_language.'.mo') === true) {
|
if (file_exists('../languages/'.$user_language.'.mo') === true) {
|
||||||
$l10n = new gettext_reader(
|
$cf = new CachedFileReader('../languages/'.$user_language.'.mo');
|
||||||
new CachedFileReader('../languages/'.$user_language.'.mo')
|
$l10n = new gettext_reader($cf);
|
||||||
);
|
|
||||||
$l10n->load_tables();
|
$l10n->load_tables();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -369,7 +369,7 @@ function menu_graph(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Export buttons.
|
// 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>";
|
$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>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user