Skip to content

Commit

Permalink
Merge pull request #1 from sr972/sr972-patch-admin-path-exclusion
Browse files Browse the repository at this point in the history
Update Abstract.php
  • Loading branch information
sr972 committed Apr 6, 2016
2 parents 6ffc751 + 832bac2 commit dd43898
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,11 @@ protected function _vcl_call($subroutine) {
*/
protected function _getAdminFrontname() {
if (Mage::getStoreConfig('admin/url/use_custom_path')) {
return Mage::getStoreConfig('admin/url/custom_path');
if(Mage::getStoreConfig('web/url/use_store')) {
return Mage::getModel('core/store')->load(0)->getCode() . "/" . Mage::getStoreConfig('admin/url/custom_path');
} else {
return Mage::getStoreConfig('admin/url/custom_path');
}
} else {
return (string) Mage::getConfig()->getNode(
'admin/routers/adminhtml/args/frontName' );
Expand Down

0 comments on commit dd43898

Please sign in to comment.