Conformité avec new WDB

This commit is contained in:
Michael RICOIS 2015-04-27 17:20:39 +00:00
parent b5ac5386ac
commit c9b2582ac6

View File

@ -921,20 +921,20 @@ function generateFormule($version, $type = 'scores')
*/
function generateComment($version, $type = 'scores', $cycle = 2)
{
$iDb = new WDB("jo");
$iDb = new WDB();
// Select the right table in database in function of type
switch ($type) {
case 'scores':
$name = 'Score_'.$version.'_'.$cycle;
$file = APPLICATION_PATH.'/../library/Metier/scores/Comment/Score_'.$version.'_'.$cycle.'.php';
$tableComment = 'scores_commentaires_'.$version;
$tableComment = 'jo.scores_commentaires_'.$version;
break;
case 'valo':
$name = 'Valo_'.$version.'_'.$cycle;
$file = APPLICATION_PATH.'/../library/Metier/scores/Comment/Valo_'.$version.'_'.$cycle.'.php';
$tableComment = 'valo_commentaires_'.$version;
$tableComment = 'jo.valo_commentaires_'.$version;
break;
}