@@ -1,16 +1,16 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * ESI DECODER |
|
| 4 | - * |
|
| 5 | - * This tool can be used to decode an ESI request. |
|
| 6 | - * You can just paste the whole ESI URL and push the button to decode it. |
|
| 7 | - * |
|
| 8 | - * Make sure you place this utility on a protected spot on your web server where only authorized users can use it. |
|
| 9 | - * |
|
| 10 | - * If the URLs you see in "varnishlog" or "varnishncsa" are not working because they are cut off, read this FAQ item: |
|
| 11 | - * https://github.com/nexcess/magento-turpentine/wiki/FAQ#im-using-varnishncsa-to-generate-logs-and-the-esi-urls-are-cut-off-how-do-i-get-the-full-url-in-the-logs |
|
| 12 | - * |
|
| 13 | - */ |
|
| 3 | + * ESI DECODER |
|
| 4 | + * |
|
| 5 | + * This tool can be used to decode an ESI request. |
|
| 6 | + * You can just paste the whole ESI URL and push the button to decode it. |
|
| 7 | + * |
|
| 8 | + * Make sure you place this utility on a protected spot on your web server where only authorized users can use it. |
|
| 9 | + * |
|
| 10 | + * If the URLs you see in "varnishlog" or "varnishncsa" are not working because they are cut off, read this FAQ item: |
|
| 11 | + * https://github.com/nexcess/magento-turpentine/wiki/FAQ#im-using-varnishncsa-to-generate-logs-and-the-esi-urls-are-cut-off-how-do-i-get-the-full-url-in-the-logs |
|
| 12 | + * |
|
| 13 | + */ |
|
| 14 | 14 | |
| 15 | 15 | $tries = 5; |
| 16 | 16 | $dir = dirname(__FILE__); |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * User: [email protected] |
|
| 4 | - * Date: 08/01/14 |
|
| 5 | - */ |
|
| 3 | + * User: [email protected] |
|
| 4 | + * Date: 08/01/14 |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | require_once Mage::getModuleDir('controllers', 'Mage_Adminhtml').DS.'CacheController.php'; |
| 8 | 8 | |
@@ -173,8 +173,8 @@ |
||
| 173 | 173 | */ |
| 174 | 174 | protected function _getAdminFrontname() { |
| 175 | 175 | if (Mage::getStoreConfig('admin/url/use_custom_path')) { |
| 176 | - if(Mage::getStoreConfig('web/url/use_store')) { |
|
| 177 | - return Mage::getModel('core/store')->load(0)->getCode() . "/" . Mage::getStoreConfig('admin/url/custom_path'); |
|
| 176 | + if (Mage::getStoreConfig('web/url/use_store')) { |
|
| 177 | + return Mage::getModel('core/store')->load(0)->getCode()."/".Mage::getStoreConfig('admin/url/custom_path'); |
|
| 178 | 178 | } else { |
| 179 | 179 | return Mage::getStoreConfig('admin/url/custom_path'); |
| 180 | 180 | } |