mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Make singular() method public in database class.
This commit is contained in:
@@ -1810,7 +1810,7 @@ include "root.php";
|
||||
} //save method
|
||||
|
||||
//define singular function to convert a word in english to singular
|
||||
private function singular($word) {
|
||||
public 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, -4) == "sses") { // eg. 'addresses' to 'address'
|
||||
|
||||
Reference in New Issue
Block a user