File tree Expand file tree Collapse file tree 1 file changed +16
-15
lines changed
lib/internal/Magento/Framework/Config Expand file tree Collapse file tree 1 file changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -96,21 +96,22 @@ public function get($filename, $scope)
96
96
$ themeConfigFile
97
97
)
98
98
);
99
- }
100
- $ designPath =
101
- $ this ->componentRegistrar ->getPath (
102
- ComponentRegistrar::THEME ,
103
- $ this ->area . '/ ' . $ this ->themePath
104
- ) . '/etc/view.xml ' ;
105
- if (file_exists ($ designPath )) {
106
- try {
107
- $ designDom = new \DOMDocument ;
108
- $ designDom ->load ($ designPath );
109
- $ iterator [$ designPath ] = $ designDom ->saveXML ();
110
- } catch (\Exception $ e ) {
111
- throw new \Magento \Framework \Exception \LocalizedException (
112
- new \Magento \Framework \Phrase ('Could not read config file ' )
113
- );
99
+ } else {
100
+ $ designPath =
101
+ $ this ->componentRegistrar ->getPath (
102
+ ComponentRegistrar::THEME ,
103
+ $ this ->area . '/ ' . $ this ->themePath
104
+ ) . '/etc/view.xml ' ;
105
+ if (file_exists ($ designPath )) {
106
+ try {
107
+ $ designDom = new \DOMDocument ;
108
+ $ designDom ->load ($ designPath );
109
+ $ iterator [$ designPath ] = $ designDom ->saveXML ();
110
+ } catch (\Exception $ e ) {
111
+ throw new \Magento \Framework \Exception \LocalizedException (
112
+ new \Magento \Framework \Phrase ('Could not read config file ' )
113
+ );
114
+ }
114
115
}
115
116
}
116
117
break ;
You can’t perform that action at this time.
0 commit comments