Conformité avec new WDB
This commit is contained in:
parent
b5ac5386ac
commit
c9b2582ac6
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user