File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -114,8 +114,7 @@ public function makeView()
114
114
115
115
public function checkView ($ view )
116
116
{
117
- // ppd($view);
118
- if (View::exists ($ view ) || View::exists ('core:: ' . $ view )) {
117
+ if (View::exists ($ view ) || View::exists ('core:: ' . $ view ) || View::exists ('chat:: ' . $ view ) || View::exists ('forum:: ' . $ view )) {
119
118
return true ;
120
119
}
121
120
Original file line number Diff line number Diff line change @@ -17,8 +17,19 @@ class Environment extends BaseEnvironment {
17
17
public function make ($ view , $ data = array (), $ mergeData = array ())
18
18
{
19
19
if (!$ this ->exists ($ view )) {
20
- $ view = 'core:: ' . $ view ;
20
+ $ coreView = 'core:: ' . $ view ;
21
+ $ chatView = 'chat:: ' . $ view ;
22
+ $ forumView = 'forum:: ' . $ view ;
23
+
24
+ if ($ this ->exists ($ coreView )) {
25
+ $ view = $ coreView ;
26
+ } elseif ($ this ->exists ($ chatView )) {
27
+ $ view = $ chatView ;
28
+ } elseif ($ this ->exists ($ forumView )) {
29
+ $ view = $ forumView ;
30
+ }
21
31
}
32
+
22
33
$ path = $ this ->finder ->find ($ view );
23
34
24
35
$ data = array_merge ($ mergeData , $ this ->parseData ($ data ));
You can’t perform that action at this time.
0 commit comments