fix for tag sorting and html page render
when sorting tags on a fresh install, a fatal error happens when the tag array is empty because it looks for a var that doesn't exist yet. that's been patched the settings json file was still referencing the old version of the base theme, so it was crashing because it doesn't exist anymore. updating it to the new theme name clears this error
This commit is contained in:
parent
8704fdcfe1
commit
9923f087a6
2 changed files with 6 additions and 3 deletions
|
@ -60,14 +60,17 @@ class SortingService
|
|||
}
|
||||
$tagData = [];
|
||||
|
||||
//dd($this->settings->getTags()['pages']);
|
||||
$settingsTags = [];
|
||||
if (isset($this->settings->getTags()['pages'])) {
|
||||
$settingsTags = $this->settings->getTags()['pages'];
|
||||
}
|
||||
$tagData = [
|
||||
'debug' => $debug, // for theme kit
|
||||
'tags' => $this->p_tags,
|
||||
'theme' => $this->info['theme'], // for theme kit
|
||||
'title' => 'Pages Tagged as Tag',
|
||||
'dynamicRender' => $this->info['dynamicRender'],
|
||||
'pages' => $this->settings->getTags()['pages'],
|
||||
'pages' => $settingsTags,
|
||||
'info' => $this->info,
|
||||
'menu' => $this->settings->getMenu(),
|
||||
'media' => [
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"background": "/assets/images/global/default-bg.jpg",
|
||||
"private": "true",
|
||||
"renderOnSave": "false",
|
||||
"theme": "fipamo-default",
|
||||
"theme": "fipamo-default-v2",
|
||||
"display_limit": 5,
|
||||
"last_backup": null,
|
||||
"externalAPI": "false",
|
||||
|
|
Loading…
Reference in a new issue