New: On définit la constante MAIN_GRAPH_LIBRARY qui pourra etre utilisé pour choisir la librairie graphique utilisée.

This commit is contained in:
Laurent Destailleur 2006-12-06 00:45:58 +00:00
parent bd2524521d
commit 8b6d69813e

View File

@ -169,14 +169,13 @@ if ($_GET["id"] || $_GET["ref"])
$px->SetShading(5); $px->SetShading(5);
//print 'x '.$key.' '.$graphfiles[$key]['file']; //print 'x '.$key.' '.$graphfiles[$key]['file'];
// Pour orders, on force la lib graphique sur artichow
// \todo A supprimer car on peut switcher entre artichow et phplot par la
// constante MAIN_GRAPH_LIBRARY qui peut valoir ('artichow' ou 'phplot')
if ($key == 'orders') if ($key == 'orders')
{ {
$px->library = 'artichow'; $px->library = 'artichow';
} }
else
{
$px->library = 'phplot';
}
$px->draw($dir."/".$graphfiles[$key]['file']); $px->draw($dir."/".$graphfiles[$key]['file']);
} }