changed how the config is stored, rebased the file structure to make it more clean

This commit is contained in:
hnh.mtf
2022-03-11 10:04:36 +01:00
parent fc1fcd3031
commit cbe16e8627
28 changed files with 109 additions and 121 deletions
+3 -2
View File
@@ -1,5 +1,6 @@
<?php
require "config.php";
$config = require "config.php";
require "misc/tools.php";
if (!isset($_REQUEST["q"]))
{
@@ -29,7 +30,7 @@
$results = get_video_results($query_encoded, $page);
break;
case 3:
if ($config_disable_bittorent_search)
if ($config->disable_bittorent_search)
$results = array("error" => "disabled");
else
{