Actions
Bug #6641
open
translation :: get not static
Start date:
27/08/2013
Due date:
% Done:
0%
Estimated time:
Complexity:
Normal
Description
why is Translation :: get not defined as a static method?
file chamilo-dev/common/libraries/php/shared/translation/translation.class.php line 122
Updated by Anonymous over 10 years ago
There are more non-static methods in the translation class. I suppose all of them should be static, as the Translation class is a singleton
Updated by Anonymous over 10 years ago
in issue #6529, I mentioned a non-functioning call to translation :: set_application, maybe the reason why it doesn't work is because it should be static while it is not.
Updated by Anonymous over 10 years ago
Klaas Moerman wrote:
There are more non-static methods in the translation class. I suppose all of them should be static, as the Translation class is a singleton
except maybe the translate function, which then should be private
Actions