mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 19:41:55 +02:00
Drop unnecessary conditional definition of gettext
php-gettext will always provide these functions.
This commit is contained in:
parent
5a9fba98ce
commit
15457b16f1
1 changed files with 0 additions and 23 deletions
|
@ -76,29 +76,6 @@ function flip_class($array=0) {
|
|||
|
||||
} // flip_class
|
||||
|
||||
/**
|
||||
* _
|
||||
* Check to see if the gettext alias _ is defined. If it isn't we define it as
|
||||
* a noop.
|
||||
*/
|
||||
if (!function_exists('_')) {
|
||||
|
||||
function _($string) {
|
||||
return $string;
|
||||
} // _
|
||||
|
||||
} // if _ isn't defined
|
||||
|
||||
/**
|
||||
* ngettext
|
||||
* checks for ngettext and defines it if it doesn't exist
|
||||
*/
|
||||
if (!function_exists('ngettext')) {
|
||||
function ngettext($string) {
|
||||
return $string;
|
||||
}
|
||||
} // if no ngettext
|
||||
|
||||
/**
|
||||
* access_denied
|
||||
* Throws an error if they try to do something that they aren't allowed to.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue