mirror of
https://github.com/frontendnetwork/vegancheck.me
synced 2024-11-10 14:34:14 +00:00
Changed require
& include
to _once
[#75]
Changed `require` and `include` to `require_once` and `include_once` to fix #75
This commit is contained in:
parent
f49db47ca3
commit
fbd8f7eeff
3 changed files with 5 additions and 5 deletions
|
@ -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>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
if(!in_array($lang,$supportedLanguages)){
|
||||
$lang='en';
|
||||
}
|
||||
require("localization/".$lang.".php");
|
||||
require_once("localization/".$lang.".php");
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
|
|
|
@ -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");
|
||||
?>
|
Loading…
Reference in a new issue