update 2024-04-24 21:22:23
This commit is contained in:
parent
c9c9e1f3d3
commit
0c98ab5bb5
@ -243,6 +243,12 @@ class Data
|
||||
'jcb_ce_onBeforeModelCustomViewData', [&$item, &$id, &$table]
|
||||
);
|
||||
|
||||
// Make sure the icon is only an icon path
|
||||
if (strpos($item->icon, '#') !== false)
|
||||
{
|
||||
$item->icon = strstr($item->icon, '#', true);
|
||||
}
|
||||
|
||||
// set GUI mapper
|
||||
$guiMapper = [
|
||||
'table' => $table,
|
||||
|
@ -201,6 +201,12 @@
|
||||
'jcb_ce_onBeforeModelCustomViewData', [&$item, &$id, &$table]
|
||||
);
|
||||
|
||||
// Make sure the icon is only an icon path
|
||||
if (strpos($item->icon, '#') !== false)
|
||||
{
|
||||
$item->icon = strstr($item->icon, '#', true);
|
||||
}
|
||||
|
||||
// set GUI mapper
|
||||
$guiMapper = [
|
||||
'table' => $table,
|
||||
|
@ -433,6 +433,22 @@ class Data
|
||||
}
|
||||
unset($view->addtables);
|
||||
|
||||
// Make sure the icon is only an icon path
|
||||
if (strpos($view->icon, '#') !== false)
|
||||
{
|
||||
$view->icon = strstr($view->icon, '#', true);
|
||||
}
|
||||
// Make sure the icon_add is only an icon_add path
|
||||
if (strpos($view->icon_add, '#') !== false)
|
||||
{
|
||||
$view->icon_add = strstr($view->icon_add, '#', true);
|
||||
}
|
||||
// Make sure the icon_add is only an icon_add path
|
||||
if (strpos($view->icon_category, '#') !== false)
|
||||
{
|
||||
$view->icon_category = strstr($view->icon_category, '#', true);
|
||||
}
|
||||
|
||||
// set custom tabs
|
||||
$this->customtabs->set($view);
|
||||
|
||||
|
@ -384,6 +384,22 @@
|
||||
}
|
||||
unset($view->addtables);
|
||||
|
||||
// Make sure the icon is only an icon path
|
||||
if (strpos($view->icon, '#') !== false)
|
||||
{
|
||||
$view->icon = strstr($view->icon, '#', true);
|
||||
}
|
||||
// Make sure the icon_add is only an icon_add path
|
||||
if (strpos($view->icon_add, '#') !== false)
|
||||
{
|
||||
$view->icon_add = strstr($view->icon_add, '#', true);
|
||||
}
|
||||
// Make sure the icon_add is only an icon_add path
|
||||
if (strpos($view->icon_category, '#') !== false)
|
||||
{
|
||||
$view->icon_category = strstr($view->icon_category, '#', true);
|
||||
}
|
||||
|
||||
// set custom tabs
|
||||
$this->customtabs->set($view);
|
||||
|
||||
|
@ -404,6 +404,12 @@ final class Data
|
||||
)
|
||||
);
|
||||
|
||||
// Make sure the image is only an image path
|
||||
if (strpos($component->image, '#') !== false)
|
||||
{
|
||||
$component->image = strstr($component->image, '#', true);
|
||||
}
|
||||
|
||||
// set the website and autor for global use (default to VDM if not found)
|
||||
$this->config->set('project_website', $component->website ?? 'https://dev.vdm.io');
|
||||
$this->config->set('project_author', $component->author ?? 'VDM');
|
||||
|
@ -354,6 +354,12 @@
|
||||
)
|
||||
);
|
||||
|
||||
// Make sure the image is only an image path
|
||||
if (strpos($component->image, '#') !== false)
|
||||
{
|
||||
$component->image = strstr($component->image, '#', true);
|
||||
}
|
||||
|
||||
// set the website and autor for global use (default to VDM if not found)
|
||||
$this->config->set('project_website', $component->website ?? 'https://dev.vdm.io');
|
||||
$this->config->set('project_author', $component->author ?? 'VDM');
|
||||
|
Loading…
Reference in New Issue
Block a user