Introduce PSR-4 autoloading

This commit is contained in:
Sobak
2016-07-21 17:09:48 +02:00
parent 62dafbe8dd
commit 54f96b9938
48 changed files with 342 additions and 238 deletions

View File

@@ -10,6 +10,8 @@
* @version 0.22
*/
namespace PrivateBin;
/**
* i18n
*
@@ -82,7 +84,7 @@ class i18n
*/
public static function _($messageId)
{
return call_user_func_array(array('i18n', 'translate'), func_get_args());
return call_user_func_array(array('self', 'translate'), func_get_args());
}
/**