Subversion Repositories oidplus

Rev

Rev 632 | Rev 641 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 632 Rev 635
Line 75... Line 75...
75
                        } else {
75
                        } else {
76
                                $class = 'lng_flag picture_ghost';
76
                                $class = 'lng_flag picture_ghost';
77
                        }
77
                        }
78
                        $add = (!is_null($goto)) ? '&goto='.urlencode($goto) : '';
78
                        $add = (!is_null($goto)) ? '&goto='.urlencode($goto) : '';
79
 
79
 
80
                        $dirs = array_merge(
-
 
81
                                glob(OIDplus::localpath().'plugins/language/'.$code.'/'),
80
                        $dirs = glob(OIDplus::localpath().'plugins/'.'*'.'/language/'.$code.'/');
82
                                glob(OIDplus::localpath().'plugins/_thirdParty/'.'*'.'/language/'.$code.'/')
-
 
83
                        );
-
 
84
 
81
 
85
                        if (count($dirs) > 0) {
82
                        if (count($dirs) > 0) {
86
                                $dir = substr($dirs[0], strlen(OIDplus::localpath()));
83
                                $dir = substr($dirs[0], strlen(OIDplus::localpath()));
87
                                $langbox_entries[$code] = '<span class="lang_flag_bg"><a '.($useJs ? 'onclick="setLanguage(\''.$code.'\'); return false" ' : '').'href="?lang='.$code.$add.'"><img src="'.OIDplus::webpath(null,true).$dir.'/'.$flag.'" alt="'.$pluginManifest->getName().'" title="'.$pluginManifest->getName().'" class="'.$class.'" id="lng_flag_'.$code.'" height="20"></a></span> ';
84
                                $langbox_entries[$code] = '<span class="lang_flag_bg"><a '.($useJs ? 'onclick="setLanguage(\''.$code.'\'); return false" ' : '').'href="?lang='.$code.$add.'"><img src="'.OIDplus::webpath(null,true).$dir.'/'.$flag.'" alt="'.$pluginManifest->getName().'" title="'.$pluginManifest->getName().'" class="'.$class.'" id="lng_flag_'.$code.'" height="20"></a></span> ';
88
                        }
85
                        }