diff --git a/include/lib/database_core.class.php b/include/lib/database_core.class.php index 5af3f84b5..0895f98bb 100644 --- a/include/lib/database_core.class.php +++ b/include/lib/database_core.class.php @@ -80,7 +80,14 @@ class DatabaseCore } - + /** + * return the name of the current database + * @return false|string + */ + public function get_name () { + return pg_dbname($this->ret); + } + public function verify() { // Verify that the elt we want to add is correct