mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-02 02:03:48 +00:00
Database class integration. Modify database class singular() method to support table names ending in 'ses', such as v_databases.
This commit is contained in:
@@ -1813,6 +1813,9 @@ include "root.php";
|
||||
private function singular($word) {
|
||||
//"-es" is used for words that end in "-x", "-s", "-z", "-sh", "-ch" in which case you add
|
||||
if (substr($word, -2) == "es") {
|
||||
if (substr($word, -3) == "ses") {
|
||||
return rtrim($word, "s");
|
||||
}
|
||||
if (substr($word, -3) == "ies") {
|
||||
return substr($word,0,-3)."y";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user