Use Dossier::connect (singleton) instead of new Databass(dossier_id)
This commit is contained in:
parent
19e6e8ca6d
commit
8fc56e3ef4
87 changed files with 105 additions and 149 deletions
|
|
@ -33,7 +33,7 @@ global $g_user;
|
|||
if ( basename($_GET['ajax']) == 'ajax_history.php' )
|
||||
{
|
||||
$href=dossier::get();
|
||||
$cn=new Database(dossier::id());
|
||||
$cn=Dossier::connect();
|
||||
/* current year */
|
||||
$g_user=new User($cn);
|
||||
$exercice=$g_user->get_exercice();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue