mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
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>
|
2011-04-27 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||||
|
|
||||||
* godmode/setup/setup_visuals.php
|
* 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
|
// http://us3.php.net/manual/en/function.imagefilledrectangle.php
|
||||||
// With some adds from sdonie at lgc dot com
|
// With some adds from sdonie at lgc dot com
|
||||||
// Get from official documentation PHP.net website. Thanks guys :-)
|
// 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 $config;
|
||||||
global $REMOTE_ADDR;
|
global $REMOTE_ADDR;
|
||||||
|
|
||||||
@ -236,7 +236,7 @@ function gd_progress_bar ($width, $height, $progress, $title, $font, $out_of_lim
|
|||||||
switch ($mode)
|
switch ($mode)
|
||||||
{
|
{
|
||||||
case 0:
|
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) {
|
if ($mode == 0) {
|
||||||
$engine->background_color = '#E6E6D2';
|
$engine->background_color = '#E6E6D2';
|
||||||
@ -267,7 +267,7 @@ if ($mode == 0) {
|
|||||||
imagePng($imgPng);
|
imagePng($imgPng);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
drawRating($progress, $width, $height, $font, $out_of_lim_str, $mode);
|
drawRating($progress, $width, $height, $font, $out_of_lim_str, $mode, $fontsize);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user