File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -122,10 +122,6 @@ function ($viewData, $params) {
122
122
*/
123
123
public function loadController (string $ template = '' ): array
124
124
{
125
- if (is_archive () && $ template === 'one-page ' ) {
126
- $ template = 'archive ' ;
127
- }
128
-
129
125
//Do something before controller creation
130
126
do_action_deprecated (
131
127
'Municipio/blade/before_load_controller ' ,
@@ -138,6 +134,10 @@ public function loadController(string $template = ''): array
138
134
$ isSingular = fn () => is_singular ();
139
135
$ isArchive = fn () => is_archive () || is_home ();
140
136
137
+ if ($ isArchive ) {
138
+ $ template = 'archive ' ;
139
+ }
140
+
141
141
$ hasContentType = fn () => ContentTypeHelper::hasAnyContentType (get_post_type () ?? '' );
142
142
143
143
$ templateController = fn () => ControllerHelper::camelCase ($ template );
You can’t perform that action at this time.
0 commit comments