From b4fe424113816cab1138ce6167c3ad3d6390dfd8 Mon Sep 17 00:00:00 2001 From: aB0t Date: Wed, 18 Sep 2024 01:19:15 +0200 Subject: [PATCH] Update 2024-09-18 01:19:10 --- src/bfd1d6d5-56c1-4fe9-9fee-1c5910e1f5d8/code.php | 2 +- src/d46c4667-378b-49e8-9782-ffb28d92415a/README.md | 1 + src/d46c4667-378b-49e8-9782-ffb28d92415a/code.php | 11 ++++++++++- src/d46c4667-378b-49e8-9782-ffb28d92415a/code.power | 11 ++++++++++- 4 files changed, 22 insertions(+), 3 deletions(-) diff --git a/src/bfd1d6d5-56c1-4fe9-9fee-1c5910e1f5d8/code.php b/src/bfd1d6d5-56c1-4fe9-9fee-1c5910e1f5d8/code.php index b85bed2..059f2eb 100644 --- a/src/bfd1d6d5-56c1-4fe9-9fee-1c5910e1f5d8/code.php +++ b/src/bfd1d6d5-56c1-4fe9-9fee-1c5910e1f5d8/code.php @@ -217,7 +217,7 @@ final class Table extends BaseTable implements Tableinterface 'tab_name' => 'Details', 'db' => [ 'type' => 'TINYINT(1)', - 'default' => '0', + 'default' => '1', 'null_switch' => 'NOT NULL', 'unique_key' => false, 'key' => true, diff --git a/src/d46c4667-378b-49e8-9782-ffb28d92415a/README.md b/src/d46c4667-378b-49e8-9782-ffb28d92415a/README.md index ce974e7..43e8e4d 100644 --- a/src/d46c4667-378b-49e8-9782-ffb28d92415a/README.md +++ b/src/d46c4667-378b-49e8-9782-ffb28d92415a/README.md @@ -14,6 +14,7 @@ class Display << (F,LightGreen) >> #RoyalBlue { # Item $item # Items $items + # string $url # array $fileTypes # array $fileTypeTasks + __construct(Item $item, Items $items) diff --git a/src/d46c4667-378b-49e8-9782-ffb28d92415a/code.php b/src/d46c4667-378b-49e8-9782-ffb28d92415a/code.php index 766d61b..287e5a8 100644 --- a/src/d46c4667-378b-49e8-9782-ffb28d92415a/code.php +++ b/src/d46c4667-378b-49e8-9782-ffb28d92415a/code.php @@ -41,6 +41,14 @@ final class Display */ protected Items $items; + /** + * The file site url + * + * @var string + * @since 5.0.2 + */ + protected string $url; + /** * The file types * @@ -69,6 +77,7 @@ final class Display { $this->item = $item; $this->items = $items; + $this->url = rtrim(Uri::root(), '/'); } /** @@ -161,7 +170,7 @@ final class Display ]; // Build the full URL - $file->link = Uri::root() . Route::_('index.php?' . http_build_query($queryParams)); + $file->link = $this->url . Route::_('index.php?' . http_build_query($queryParams)); } } diff --git a/src/d46c4667-378b-49e8-9782-ffb28d92415a/code.power b/src/d46c4667-378b-49e8-9782-ffb28d92415a/code.power index 324b55f..327bfaf 100644 --- a/src/d46c4667-378b-49e8-9782-ffb28d92415a/code.power +++ b/src/d46c4667-378b-49e8-9782-ffb28d92415a/code.power @@ -14,6 +14,14 @@ */ protected Items $items; + /** + * The file site url + * + * @var string + * @since 5.0.2 + */ + protected string $url; + /** * The file types * @@ -42,6 +50,7 @@ { $this->item = $item; $this->items = $items; + $this->url = rtrim(Uri::root(), '/'); } /** @@ -134,7 +143,7 @@ ]; // Build the full URL - $file->link = Uri::root() . Route::_('index.php?' . http_build_query($queryParams)); + $file->link = $this->url . Route::_('index.php?' . http_build_query($queryParams)); } }