Update 2024-09-18 01:19:10

This commit is contained in:
Robot 2024-09-18 01:19:15 +02:00
parent d1e605dcd3
commit b4fe424113
Signed by untrusted user: Robot
GPG Key ID: 14DECD44E7E1BB95
4 changed files with 22 additions and 3 deletions

View File

@ -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,

View File

@ -14,6 +14,7 @@
class Display << (F,LightGreen) >> #RoyalBlue {
# Item $item
# Items $items
# string $url
# array $fileTypes
# array $fileTypeTasks
+ __construct(Item $item, Items $items)

View File

@ -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));
}
}

View File

@ -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));
}
}