File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/PatternLab/PatternData/Helpers Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ public function run() {
57
57
// iterate to process each pattern
58
58
foreach ($ store as $ patternStoreKey => $ patternStoreData ) {
59
59
60
- if ($ patternStoreData ["category " ] == "pattern " ) {
60
+ if (( $ patternStoreData ["category " ] == "pattern " ) && isset ( $ patternStoreData [ " name " ]) ) {
61
61
62
62
$ data = Data::getPatternSpecificData ($ patternStoreKey );
63
63
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public function run() {
41
41
// iterate to get raw data loaded into the PatternData Store
42
42
foreach ($ store as $ patternStoreKey => $ patternStoreData ) {
43
43
44
- if ($ patternStoreData ["category " ] == "pattern " ) {
44
+ if (( $ patternStoreData ["category " ] == "pattern " ) && isset ( $ patternStoreData [ " name " ]) ) {
45
45
46
46
// figure out the source path for the pattern to render
47
47
$ srcPath = (isset ($ patternStoreData ["pseudo " ])) ? PatternData::getPatternOption ($ patternStoreData ["original " ],"pathName " ) : $ patternStoreData ["pathName " ];
@@ -51,7 +51,7 @@ public function run() {
51
51
if (file_exists ($ path )) {
52
52
PatternData::setPatternOption ($ patternStoreKey ,"patternRaw " ,file_get_contents ($ path ));
53
53
} else {
54
- Console::writeError ($ patternStoreData ["partial " ]." wasn't found for loading. the given path: " .$ path );
54
+ Console::writeWarning ($ patternStoreData ["partial " ]." wasn't found for loading. the given path: " .$ path );
55
55
}
56
56
57
57
}
You can’t perform that action at this time.
0 commit comments