Changed require & include to _once [#75]

Changed `require` and `include` to `require_once` and `include_once` to fix #75
This commit is contained in:
Philip 2022-01-04 22:13:09 +01:00
parent f49db47ca3
commit fbd8f7eeff
3 changed files with 5 additions and 5 deletions

View file

@ -4,7 +4,7 @@
if(!in_array($lang,$supportedLanguages)){
$lang='en';
}
require("localization/".$lang.".php");
require_once("localization/".$lang.".php");
?>
<!DOCTYPE html>
<!-- VeganCheck.me is Open Source
@ -40,7 +40,7 @@ https://github.com/jokenetwork/vegancheck.me
<meta name="apple-mobile-web-app-title" content="VeganCheck">
<link rel="apple-touch-startup-image" href="img/iossplash.png?v=1.0.0">
<link href="css/style.min.css?v=3.9.45" rel="stylesheet">
<link href="css/style.min.css?v=3.9.46" rel="stylesheet">
</head>
<body>

View file

@ -4,7 +4,7 @@
if(!in_array($lang,$supportedLanguages)){
$lang='en';
}
require("localization/".$lang.".php");
require_once("localization/".$lang.".php");
?>
<!DOCTYPE html>

View file

@ -14,7 +14,7 @@ $supportedLanguages=['en','de', 'fr', 'es', 'nl'];
}
if (!empty($lang)){
require("localization/".$lang.".php");
require_once("localization/".$lang.".php");
}
// Open Issue on GitHub when error occurs
@ -188,5 +188,5 @@ else {
}
// Remove before using on your own site
include("stats.php");
include_once("stats.php");
?>