prevent collision if i18n function already exists

This commit is contained in:
tbrisker
2014-06-14 22:16:21 +03:00
parent 25212dd687
commit 7ad2d10102
+2
View File
@@ -353,6 +353,7 @@ function _zetDB($bibtex_filenames) {
} // end function setDB
// internationalization
if (!function_exists('__')){
function __($msg) {
global $BIBTEXBROWSER_LANG;
if (isset($BIBTEXBROWSER_LANG[$msg])) {
@@ -360,6 +361,7 @@ function __($msg) {
}
return $msg;
}
}
// factories
// may be overridden in bibtexbrowser.local.php