2 Commits
v1.1.1 ... main

Author SHA1 Message Date
0f137dbe73 fixed nowexists keys in configuration 2026-02-09 08:04:37 +01:00
7fdf4d32d5 fixed namespace,
removed use 'Exception' - has no effect
2026-02-09 07:16:18 +01:00

View File

@ -60,15 +60,15 @@ if (!$loaded) {
}
$protocol = (!empty($_SERVER[\'HTTPS\']) && $_SERVER[\'HTTPS\'] !== \'off\') ? "https://" : "http://";
$host = $_SERVER[\'HTTP_HOST\'];
$uri = $_SERVER[\'REQUEST_URI\']; // obsahuje aj query string
$host = $_SERVER[\'HTTP_HOST\'] ?? \'localhost\';
$uri = $_SERVER[\'REQUEST_URI\'] ?? \'\'; // obsahuje aj query string
define(\'URL_PREFIX\', $protocol.$host.str_replace(basename($_SERVER[\'SCRIPT_NAME\']), \'\', $_SERVER[\'SCRIPT_NAME\']));
');
copyFile($source_dir . 'Maintenance.php', '<' . '?php
namespace ' . $namespace . ';
namespace ' . rtrim($namespace, '\\') . ';
class Maintenance extends \TPsoft\DBmodel\Maintenance
{
@ -130,7 +130,6 @@ copyFile($source_dir . 'Init.php', '<' . '?php
require __DIR__ . \'/../vendor/autoload.php\';
use \Exception;
use \TPsoft\DBmodel\DBmodel;
use \\' . $namespace . 'Maintenance;