mirror of
https://github.com/rottenwheel/moner.ooo.git
synced 2024-12-22 00:00:25 +00:00
refactor: replace require with require_once, remove unneeded semicolon
This commit is contained in:
parent
2b3667e557
commit
c6a402927d
2 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ $api_cg = json_decode(file_get_contents('coingecko.json'), true);
|
||||||
// Configuration file
|
// Configuration file
|
||||||
$config = [];
|
$config = [];
|
||||||
if (file_exists('config.php')) {
|
if (file_exists('config.php')) {
|
||||||
$config = require 'config.php';
|
$config = require_once 'config.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
$display_servers_guru = isset($config['servers_guru']) && $config['servers_guru'] === true;
|
$display_servers_guru = isset($config['servers_guru']) && $config['servers_guru'] === true;
|
||||||
|
@ -106,5 +106,5 @@ foreach (array_reverse($preferred_currencies) as $currency) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Output the HTML
|
// Output the HTML
|
||||||
require 'templates/index.php';
|
require_once 'templates/index.php';
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -121,7 +121,7 @@
|
||||||
<?php echo $info;
|
<?php echo $info;
|
||||||
if ($display_servers_guru) {
|
if ($display_servers_guru) {
|
||||||
echo $servers_guru;
|
echo $servers_guru;
|
||||||
};
|
}
|
||||||
echo $attribution; ?>
|
echo $attribution; ?>
|
||||||
</small>
|
</small>
|
||||||
<hr />
|
<hr />
|
||||||
|
|
Loading…
Reference in a new issue