Suppression debug

This commit is contained in:
Michael RICOIS 2009-05-29 10:03:24 +00:00
parent 6b173d24c1
commit 9a9cd19867

View File

@ -196,12 +196,9 @@ function dEvol($nAnnee,$nRatio){
* @return int
*/
function graphPercent($nRatio,$totalRatio){
global $firephp;
global $ratiosEntrep;
$ratio = isset($ratiosEntrep[0][$nRatio]) ? $ratiosEntrep[0][$nRatio] : 0;
$totalRatio = $ratiosEntrep[0][$totalRatio];
$firephp->log($totalRatio,'totalRatio');
if ( ($ratio!='NS' || $ratio!=NULL) && ($totalRatio!=0 || $totalRatio!='NS')){
return $ratio*100/$totalRatio;
}else{
@ -245,13 +242,11 @@ function dPercent($nAnnee,$nRatio,$totalRatio){
* @return string
*/
function wrapComment($text){
global $firephp;
$fontSize = 2;
$blockSize = 500;
$newtext = wordwrap($text, $blockSize/$fontSize , "\n");
$newtext = htmlentities($newtext);
$newtext = nl2br($newtext);
$firephp->log($newtext, 'newtext');
return $newtext;
}
?>