File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
modules/servers/upCloudVm Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,13 +42,13 @@ class Helper
4242 */
4343 public static function getLang ()
4444 {
45- $ languageDir = dirname (__FILE__ ).DS .'lang ' .DS ;
45+ $ languageDir = dirname (__FILE__ ).DIRECTORY_SEPARATOR .'lang ' .DIRECTORY_SEPARATOR ;
4646 $ config = $ GLOBALS ['CONFIG ' ];
4747 $ language = isset ($ _SESSION ['Language ' ]) ? $ _SESSION ['Language ' ] : $ config ['Language ' ];
4848 $ languageFile = file_exists ($ languageDir .$ language .'.php ' ) ? $ language : 'english ' ;
49- if (file_exists (dirname (__FILE__ ).DS .'lang ' .DS .'english.php ' ))
49+ if (file_exists (dirname (__FILE__ ).DIRECTORY_SEPARATOR .'lang ' .DIRECTORY_SEPARATOR .'english.php ' ))
5050 {
51- include dirname (__FILE__ ).DS .'lang ' .DS .'english.php ' ;
51+ include dirname (__FILE__ ).DIRECTORY_SEPARATOR .'lang ' .DIRECTORY_SEPARATOR .'english.php ' ;
5252 }
5353
5454 require $ languageDir .$ languageFile .'.php ' ;
You can’t perform that action at this time.
0 commit comments