File tree 1 file changed +7
-10
lines changed
1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -101,23 +101,20 @@ private function indexChildPages($parentId)
101
101
continue ;
102
102
}
103
103
104
+ $ menu = Menu::whereId ($ page ->id )->firstOrFail ();
105
+
104
106
if (! isset ($ page ->template ->properties ->searchable ) || $ page ->template ->properties ->searchable == 0 ) {
105
107
$ this ->writeDebug (" skipping, template not searchable \n" );
106
108
107
- continue ;
108
- }
109
- if (isset ($ page ->properties ->excludeFromSearch ) && $ page ->properties ->excludeFromSearch == true ) {
109
+ } elseif (isset ($ page ->properties ->excludeFromSearch ) && $ page ->properties ->excludeFromSearch == true ) {
110
110
$ this ->writeDebug (" skipping, page not searchable \n" );
111
111
112
- continue ;
113
- }
114
-
115
- $ menu = Menu::whereId ($ page ->id )->firstOrFail ();
112
+ } else {
116
113
117
- foreach ($ this ->locales as $ lang ) {
118
- $ this ->updatePage ($ menu , $ lang );
114
+ foreach ($ this ->locales as $ lang ) {
115
+ $ this ->updatePage ($ menu , $ lang );
116
+ }
119
117
}
120
-
121
118
// index subitems for page
122
119
foreach ($ this ->locales as $ lang ) {
123
120
$ this ->updateSubPages ($ menu , $ lang );
You can’t perform that action at this time.
0 commit comments