New: On dfinit la constante MAIN_GRAPH_LIBRARY qui pourra etre utilis pour choisir la librairie graphique utilise.

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);
//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')
{
$px->library = 'artichow';
}
else
{
$px->library = 'phplot';
}
$px->draw($dir."/".$graphfiles[$key]['file']);
}