Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NEW: Create a DB static function to check deprecated table names
It looks like in many places, there some code to change table name from old "french" names that are deprecated throughout version releases in favour of english names for internationalisation of Dolibarr. I propose to place this code as a common static function in the DoliDB class (which is generally contained in every other class). This would allow to continue to change table names without having to check every class for usage of old names and fix it. Usage: If object has no $db property; `$table_name = DoliDB::checkTableName($table_name);` if object has a $db property: `$table_name = $this->db->checkTableName($table_name);`
- Loading branch information