bugfix, changed sql-patch naming scheme

This commit is contained in:
Roman 2024-06-07 12:10:36 +02:00
parent a9487d8620
commit 7c6e9b3643
7 changed files with 5 additions and 19 deletions

@ -475,7 +475,6 @@ class MySQL extends SQL {
return $query; return $query;
} }
// FIXME: access mysql database instead of configured one
public function tableExists(string $tableName): bool { public function tableExists(string $tableName): bool {
$tableSchema = $this->connectionData->getProperty("database"); $tableSchema = $this->connectionData->getProperty("database");
$res = $this->select(new Count()) $res = $this->select(new Count())

@ -14,7 +14,7 @@ abstract class View extends StaticView {
public function __construct(Document $document, bool $loadView = true) { public function __construct(Document $document, bool $loadView = true) {
$this->document = $document; $this->document = $document;
$this->title = "Untitled View"; $this->title = "Untitled View";
$this->langModules = array(); $this->langModules = [];
$this->loadView = $loadView; $this->loadView = $loadView;
} }

@ -1,16 +0,0 @@
<?php
namespace Core\Objects\DatabaseEntity\Attribute;
#[\Attribute(\Attribute::TARGET_PROPERTY)] class Many {
private string $type;
public function __construct(string $type) {
$this->type = $type;
}
public function getValue(): string {
return $this->type;
}
}

0
Site/Elements/.gitkeep Normal file

@ -30,7 +30,10 @@ $context->parseCookies();
$currentHostName = getCurrentHostName(); $currentHostName = getCurrentHostName();
$installation = !$sql || ($sql->isConnected() && !$settings->isInstalled()); $installation = !$sql || ($sql->isConnected() && !$settings->isInstalled());
$requestedUri = $_GET["site"] ?? $_GET["api"] ?? $_SERVER["REQUEST_URI"]; $requestedUri = $_GET["site"] ?? $_GET["api"] ?? null;
if (!is_string($requestedUri)) {
$requestedUri = $_SERVER["REQUEST_URI"];
}
if ($installation) { if ($installation) {
$requestedUri = Router::cleanURL($requestedUri); $requestedUri = Router::cleanURL($requestedUri);