File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ private static function init() {
357357 $ info ->cacheProvider = $ config ['cacheProvider ' ];
358358 $ info ->request = new HttpRequest ();
359359 $ info ->response = new HttpResponse ();
360- $ info ->session = $ config ['sessionProvider ' ];
360+ $ info ->session = isset ( $ config ['sessionProvider ' ]) ? $ config [ ' sessionProvider ' ] : null ;
361361
362362 $ config ['httpContext ' ] = new HttpContext ($ info );
363363 }
@@ -1009,7 +1009,7 @@ private static function render($actionContext) {
10091009
10101010 // create view
10111011 $ viewContext = InternalHelper::makeViewContext (
1012- PHPMVC_CURRENT_VIEW_PATH ,
1012+ (! empty ( $ actionResult -> viewFile ) ? $ actionResult -> viewFile : PHPMVC_CURRENT_VIEW_PATH ) ,
10131013 $ actionContext ,
10141014 $ actionResult ,
10151015 null ,
You can’t perform that action at this time.
0 commit comments