Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
32 | public static function loadPluginTranslation($plugin) { |
||
33 | $plugin_class = JarvisPHP::getRealClassName($plugin); |
||
34 | $_lang = array(); |
||
35 | JarvisLanguage::$data[$plugin] = array(); |
||
36 | $language_file = 'Plugins/'.$plugin_class.'/language/'.$plugin_class."_"._LANGUAGE.'.php'; |
||
37 | |||
38 | //Check if translation file exists |
||
39 | if(file_exists($language_file)) { |
||
40 | require $language_file; |
||
41 | JarvisLanguage::$data[$plugin] = array_merge(JarvisLanguage::$data[$plugin], $_lang); |
||
42 | } |
||
43 | } |
||
44 | |||
60 |
This check marks private properties in classes that are never used. Those properties can be removed.