File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
app/code/Magento/Theme/Model/Design/Backend Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ public function beforeSave()
104
104
return $ this ;
105
105
}
106
106
107
+ //phpcs:ignore Magento2.Functions.DiscouragedFunction
107
108
$ this ->updateMediaDirectory (basename ($ file ), $ value ['url ' ]);
108
109
109
110
return $ this ;
@@ -116,6 +117,7 @@ public function afterLoad()
116
117
{
117
118
$ value = $ this ->getValue ();
118
119
if ($ value && !is_array ($ value )) {
120
+ //phpcs:ignore Magento2.Functions.DiscouragedFunction
119
121
$ fileName = $ this ->_getUploadDir () . '/ ' . basename ($ value );
120
122
$ fileInfo = null ;
121
123
if ($ this ->_mediaDirectory ->isExist ($ fileName )) {
@@ -126,6 +128,7 @@ public function afterLoad()
126
128
'url ' => $ url ,
127
129
'file ' => $ value ,
128
130
'size ' => is_array ($ stat ) ? $ stat ['size ' ] : 0 ,
131
+ //phpcs:ignore Magento2.Functions.DiscouragedFunction
129
132
'name ' => basename ($ value ),
130
133
'type ' => $ this ->getMimeType ($ fileName ),
131
134
'exists ' => true ,
You can’t perform that action at this time.
0 commit comments