File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,10 @@ public static function init() {
48
48
49
49
// load pattern-lab's resources
50
50
$ partialPath = $ styleguideKitPath ."/views/partials " ;
51
- self ::$ htmlHead = file_get_contents ($ partialPath ."/general-header. " .$ patternExtension );
52
- self ::$ htmlFoot = file_get_contents ($ partialPath ."/general-footer. " .$ patternExtension );
51
+ $ generalHeaderPath = $ partialPath ."/general-header. " .$ patternExtension ;
52
+ $ generalFooterPath = $ partialPath ."/general-footer. " .$ patternExtension ;
53
+ self ::$ htmlHead = (file_exists ($ generalHeaderPath )) ? file_get_contents ($ generalHeaderPath ) : "" ;
54
+ self ::$ htmlFoot = (file_exists ($ generalFooterPath )) ? file_get_contents ($ generalFooterPath ) : "" ;
53
55
54
56
// gather the user-defined header and footer information
55
57
$ patternHeadPath = $ sourceDir ."/_meta/_00-head. " .$ patternExtension ;
You can’t perform that action at this time.
0 commit comments