Skip to content

Commit

Permalink
Check if remote storage is enabled before saving local file
Browse files Browse the repository at this point in the history
  • Loading branch information
elidrissidev committed Sep 30, 2022
1 parent b315f85 commit 1fccd36
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 @@ -140,6 +140,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 1fccd36

Please sign in to comment.