2009-06-30 Ramon Novoa <rnovoa@artica.es>

* include/functions_fsgraph.php: Truncate long names for flash charts.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1781 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Ramon Novoa 2009-06-30 16:31:15 +00:00
parent f66b01f11d
commit 6956f70677
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2009-06-30 Ramon Novoa <rnovoa@artica.es>
* include/functions_fsgraph.php: Truncate long names for flash charts.
2009-06-30 Ramon Novoa <rnovoa@artica.es>
* include/fgraph.php: Added support for mixing flash/image charts.

View File

@ -274,9 +274,10 @@ function fs_agent_event_chart ($data, $width, $height, $step = 1) {
// Clean FLASH string strips non-valid characters for flashchart
function clean_flash_string ($string) {
$string = html_entity_decode ($string, ENT_QUOTES, "UTF-8");
$temp = str_replace('&', '', $string);
$temp = str_replace(' ', '', $string);
return str_replace ('"', '', $temp);
$string = str_replace('&', '', $string);
$string = str_replace(' ', '', $string);
$string = str_replace ('"', '', $string);
return substr ($string, 0, 20);
}
// Prints an error image