Skip to content

Commit

Permalink
Fixed errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tltneon committed Feb 17, 2025
1 parent 69a5775 commit ea44e93
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
header("Content-Type:text/html; charset=utf-8");

require ("src/lgsl_config.php");
require ("src/lgsl_language.php");
require_once ("src/lgsl_language.php");
$lang = new tltneon\LGSL\Lang($_COOKIE['lgsl_lang'] ?? tltneon\LGSL\Lang::EN);
if (empty($lgsl_config['installed'])) header("Location: install.php");
global $output, $title;
Expand Down Expand Up @@ -44,7 +44,7 @@ function alertContents() {
</script>
{$loader}";
} else {
$GLOBALS['lgsl_server_id'] = (int) $_GET['s'];
$GLOBALS['lgsl_server_id'] = (int) ($_GET['s'] ?? 0);;
require("src/lgsl_{$file}.php");
return $output;
}
Expand Down
2 changes: 1 addition & 1 deletion src/lgsl_details.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
\-----------------------------------------------------------------------------------------------------------*/

require "lgsl_class.php";
require "lgsl_language.php";
require_once "lgsl_language.php";
$lang = new Lang($_COOKIE['lgsl_lang'] ?? Lang::EN);
global $output, $server, $title;

Expand Down
2 changes: 1 addition & 1 deletion src/lgsl_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//------------------------------------------------------------------------------------------------------------+

require "lgsl_class.php";
require "lgsl_language.php";
require_once "lgsl_language.php";
$lang = new Lang($_COOKIE['lgsl_lang'] ?? Lang::EN);
global $output;
$config = new Config();
Expand Down

0 comments on commit ea44e93

Please sign in to comment.