File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
app/code/Magento/MediaStorage/Helper/File/Storage Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ public function getResourceStorageModel()
143
143
public function saveFile ($ filename )
144
144
{
145
145
if ($ this ->checkDbUsage ()) {
146
+ trigger_error ('Database media storage function is deprecated ' , E_USER_DEPRECATED );
146
147
$ this ->getStorageDatabaseModel ()->saveFile ($ this ->_removeAbsPathFromFileName ($ filename ));
147
148
}
148
149
}
@@ -174,6 +175,7 @@ public function renameFile($oldName, $newName)
174
175
public function copyFile ($ oldName , $ newName )
175
176
{
176
177
if ($ this ->checkDbUsage ()) {
178
+ trigger_error ('Database media storage function is deprecated ' , E_USER_DEPRECATED );
177
179
$ this ->getStorageDatabaseModel ()->copyFile (
178
180
$ this ->_removeAbsPathFromFileName ($ oldName ),
179
181
$ this ->_removeAbsPathFromFileName ($ newName )
You can’t perform that action at this time.
0 commit comments