Skip to content

Commit

Permalink
Check if DB file storage is enabled before saving local file (#2627)
Browse files Browse the repository at this point in the history
  • Loading branch information
elidrissidev authored Oct 17, 2022
1 parent dcf174b commit cc6317a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions get.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@
sendNotFoundPage();
}

// Nothing to do if DB storage is disabled
if (!Mage::helper('core/file_storage_database')->checkDbUsage()) {
sendNotFoundPage();
}

$localStorage = Mage::getModel('core/file_storage_file');
$remoteStorage = Mage::getModel('core/file_storage_database');
try {
Expand Down

0 comments on commit cc6317a

Please sign in to comment.