mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-18 21:48:24 -04:00
prevent regression around presence or absence of en.json
it gets excluded in the release archive, it's absence should not make any difference
This commit is contained in:
+2
-2
@@ -315,10 +315,10 @@ class I18n
|
||||
*/
|
||||
protected static function _getPath($file = '')
|
||||
{
|
||||
if (strlen(self::$_path) == 0) {
|
||||
if (empty(self::$_path)) {
|
||||
self::$_path = PUBLIC_PATH . DIRECTORY_SEPARATOR . 'i18n';
|
||||
}
|
||||
return self::$_path . (strlen($file) ? DIRECTORY_SEPARATOR . $file : '');
|
||||
return self::$_path . (empty($file) ? '' : DIRECTORY_SEPARATOR . $file);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user