2011-04-27 Sancho Lerena <slerena@artica.es>
* include/graphs/functions_gd.php: Fontsize was not being passed as parameter in drawRating(), now is passed. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4284 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
7e853f62f1
commit
4618d9f406
|
@ -1,3 +1,8 @@
|
|||
2011-04-27 Sancho Lerena <slerena@artica.es>
|
||||
|
||||
* include/graphs/functions_gd.php: Fontsize was not being passed
|
||||
as parameter in drawRating(), now is passed.
|
||||
|
||||
2011-04-27 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* godmode/setup/setup_visuals.php
|
||||
|
|
|
@ -162,7 +162,7 @@ function gd_progress_bar ($width, $height, $progress, $title, $font, $out_of_lim
|
|||
// http://us3.php.net/manual/en/function.imagefilledrectangle.php
|
||||
// With some adds from sdonie at lgc dot com
|
||||
// Get from official documentation PHP.net website. Thanks guys :-)
|
||||
function drawRating($rating, $width, $height, $font, $out_of_lim_str, $mode) {
|
||||
function drawRating($rating, $width, $height, $font, $out_of_lim_str, $mode, $fontsize) {
|
||||
global $config;
|
||||
global $REMOTE_ADDR;
|
||||
|
||||
|
@ -236,7 +236,7 @@ function gd_progress_bar ($width, $height, $progress, $title, $font, $out_of_lim
|
|||
switch ($mode)
|
||||
{
|
||||
case 0:
|
||||
drawRating($progress, $width, $height, $font, $out_of_lim_str, $mode);
|
||||
drawRating($progress, $width, $height, $font, $out_of_lim_str, $mode, $fontsize);
|
||||
/*
|
||||
if ($mode == 0) {
|
||||
$engine->background_color = '#E6E6D2';
|
||||
|
@ -267,7 +267,7 @@ if ($mode == 0) {
|
|||
imagePng($imgPng);
|
||||
}
|
||||
else
|
||||
drawRating($progress, $width, $height, $font, $out_of_lim_str, $mode);
|
||||
drawRating($progress, $width, $height, $font, $out_of_lim_str, $mode, $fontsize);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue