File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
app/code/Magento/Theme/Model/Design/Backend Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ public function beforeSave()
112
112
$ this ->setValue ($ file );
113
113
return $ this ;
114
114
}
115
-
115
+ // phpcs:ignore Magento2.Functions.DiscouragedFunction
116
116
$ this ->updateMediaDirectory (basename ($ file ), $ value ['url ' ]);
117
117
118
118
return $ this ;
@@ -125,6 +125,7 @@ public function afterLoad()
125
125
{
126
126
$ value = $ this ->getValue ();
127
127
if ($ value && !is_array ($ value )) {
128
+ // phpcs:ignore Magento2.Functions.DiscouragedFunction
128
129
$ fileName = $ this ->_getUploadDir () . '/ ' . basename ($ value );
129
130
$ fileInfo = null ;
130
131
if ($ this ->_mediaDirectory ->isExist ($ fileName )) {
@@ -135,6 +136,7 @@ public function afterLoad()
135
136
'url ' => $ url ,
136
137
'file ' => $ value ,
137
138
'size ' => is_array ($ stat ) ? $ stat ['size ' ] : 0 ,
139
+ // phpcs:ignore Magento2.Functions.DiscouragedFunction
138
140
'name ' => basename ($ value ),
139
141
'type ' => $ this ->getMimeType ($ fileName ),
140
142
'exists ' => true ,
You can’t perform that action at this time.
0 commit comments