Added homedir lost reference to functions_html
This commit is contained in:
parent
dba263632b
commit
658ff78efb
|
@ -2304,10 +2304,9 @@ function progress_bar($progress, $width, $height, $title = '', $mode = 1, $value
|
|||
|
||||
require_once("include_graph_dependencies.php");
|
||||
include_graphs_dependencies($config['homedir'].'/');
|
||||
|
||||
$src = ui_get_full_url(
|
||||
"/include/graphs/fgraph.php?homeurl=../../&graph_type=progressbar" .
|
||||
"&width=".$width."&height=".$height."&progress=".$progress.
|
||||
"&width=".$width."&homedir=".$config['homedir']."&height=".$height."&progress=".$progress.
|
||||
"&mode=" . $mode . "&out_of_lim_str=".$out_of_lim_str .
|
||||
"&title=".$title."&font=".$config['fontpath']."&value_text=". $value_text .
|
||||
"&colorRGB=". $colorRGB, false, false, false
|
||||
|
|
|
@ -40,6 +40,11 @@ else $graph_type = '';
|
|||
ob_start ();
|
||||
|
||||
if (!empty($graph_type)) {
|
||||
$homedir = $_GET['homedir'];
|
||||
if ($homedir != null) {
|
||||
$config['homedir'] = $homedir;
|
||||
}
|
||||
|
||||
include_once($homeurl . 'include/functions.php');
|
||||
include_once($homeurl . 'include/functions_html.php');
|
||||
|
||||
|
|
Loading…
Reference in New Issue