Project

General

Profile

Bug #6641

translation :: get not static

Added by Anonymous over 6 years ago. Updated over 6 years ago.

Status:
Needs more info
Priority:
Normal
Assignee:
-
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

History

#1

Updated by Anonymous over 6 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

#2

Updated by Anonymous over 6 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.

#3

Updated by Anonymous over 6 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

Also available in: Atom PDF