Skip to content
Snippets Groups Projects
Commit bdf1a443 authored by goujonpa's avatar goujonpa
Browse files

Merge branch 'master' of gitlab.utc.fr:nf17-camp-p14/clivi

parents c73b2daa 29876c28
No related branches found
No related tags found
No related merge requests found
...@@ -83,7 +83,8 @@ class Objet ...@@ -83,7 +83,8 @@ class Objet
public function insert() public function insert()
{ {
$dbName = self::dbName(); $class = get_called_class();
$dbName = $class::dbName();
$bdd = new Db(); $bdd = new Db();
$values = array(); $values = array();
...@@ -162,4 +163,4 @@ class Objet ...@@ -162,4 +163,4 @@ class Objet
public function getList($title, $id=null) { public function getList($title, $id=null) {
return new ListView(get_called_class(), $title, $id); return new ListView(get_called_class(), $title, $id);
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment