Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
taufik-nurrohman committed Dec 17, 2023
1 parent 2429364 commit 4f3f940
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion widget/archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
$archives = [];
$deep = 0;
$route_archive = $state->x->archive->route ?? '/archive';
$route_blog = $route ?? $state->routeBlog;
$route_blog = $route ?? $state->routeBlog ?? '/article';
$folder = LOT . D . 'page' . $route_blog;
if ($file = exist([
$folder . '.archive',
Expand Down
2 changes: 1 addition & 1 deletion widget/form/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

echo self::widget([
'content' => isset($state->x->search) ? self::form('search', [
'route' => $route ?? $state->routeBlog,
'route' => $route ?? $state->routeBlog ?? '/article',
]) : '<p role="status">' . i('Missing %s extension.', ['<a href="https://mecha-cms.com/store/extension/search" target="_blank">search</a>']) . '</p>',
'title' => $title ?? i('Search')
]);
2 changes: 1 addition & 1 deletion widget/page.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

$deep = 0;
$folder = LOT . D . 'page' . ($route ?? $state->routeBlog);
$folder = LOT . D . 'page' . ($route ?? $state->routeBlog ?? '/article');
if ($file = exist([
$folder . '.archive',
$folder . '.page'
Expand Down
2 changes: 1 addition & 1 deletion widget/tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if (isset($state->x->tag)) {
$deep = 0;
$folder = LOT . D . 'page' . ($route ?? $state->routeBlog);
$folder = LOT . D . 'page' . ($route ?? $state->routeBlog ?? '/article');
if ($file = exist([
$folder . '.archive',
$folder . '.page'
Expand Down

0 comments on commit 4f3f940

Please sign in to comment.