Skip to content

Commit

Permalink
Added support for MahoCommerce
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed Oct 11, 2024
1 parent b0be2fd commit a466d5f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/code/community/Fballiano/CssjsMinify/Model/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ public function httpResponseSendBefore(Varien_Event_Observer $observer): void
{
$response = $observer->getResponse();
$html = $response->getBody();
$baseDir = Mage::getBaseDir();
if (defined('MAHO_PUBLIC_DIR')) {
$baseDir = MAHO_PUBLIC_DIR;
} else {
$baseDir = Mage::getBaseDir();
}
$mediaDir = Mage::getBaseDir('media');
$mediaUrl = Mage::getBaseUrl('media');
$minifiedDir = "{$mediaDir}/" . self::MINIFIED_FILES_FOLDER . '/';
Expand Down

0 comments on commit a466d5f

Please sign in to comment.