forked from joomla/super-powers
Update 2024-09-18 01:19:10
This commit is contained in:
parent
d1e605dcd3
commit
b4fe424113
@ -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,
|
||||
|
@ -14,6 +14,7 @@
|
||||
class Display << (F,LightGreen) >> #RoyalBlue {
|
||||
# Item $item
|
||||
# Items $items
|
||||
# string $url
|
||||
# array $fileTypes
|
||||
# array $fileTypeTasks
|
||||
+ __construct(Item $item, Items $items)
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user