From 977f3596e7fccaf5049f7779c697ccb77fbbd5ad Mon Sep 17 00:00:00 2001 From: Fabrizio Balliano Date: Tue, 13 Apr 2021 15:55:24 +0100 Subject: [PATCH] https://github.com/fballiano/magento1-image-cleaner/issues/14 --- .../Block/Adminhtml/Fbimagecleaner/Renderer/Image.php | 3 +-- app/code/community/Fballiano/ImageCleaner/Helper/Data.php | 3 --- app/code/community/Fballiano/ImageCleaner/etc/config.xml | 1 - app/code/community/Fballiano/ImageCleaner/etc/system.xml | 8 -------- 4 files changed, 1 insertion(+), 14 deletions(-) diff --git a/app/code/community/Fballiano/ImageCleaner/Block/Adminhtml/Fbimagecleaner/Renderer/Image.php b/app/code/community/Fballiano/ImageCleaner/Block/Adminhtml/Fbimagecleaner/Renderer/Image.php index efa02a9..e23d9da 100644 --- a/app/code/community/Fballiano/ImageCleaner/Block/Adminhtml/Fbimagecleaner/Renderer/Image.php +++ b/app/code/community/Fballiano/ImageCleaner/Block/Adminhtml/Fbimagecleaner/Renderer/Image.php @@ -41,8 +41,7 @@ public function render(Varien_Object $row) $return = ""; if (Mage::getStoreConfig('admin/fb_image_cleaner/enable_image_click')) { - $target = Mage::getStoreConfig('admin/fb_image_cleaner/how_to_open_image') == Fballiano_ImageCleaner_Helper_Data::OPEN_IMAGE_SAME_WINDOW ? '' : 'target=_blank'; - $return = "$return"; + $return = "$return"; } return $return; diff --git a/app/code/community/Fballiano/ImageCleaner/Helper/Data.php b/app/code/community/Fballiano/ImageCleaner/Helper/Data.php index 57505b6..1c29d99 100644 --- a/app/code/community/Fballiano/ImageCleaner/Helper/Data.php +++ b/app/code/community/Fballiano/ImageCleaner/Helper/Data.php @@ -22,9 +22,6 @@ */ class Fballiano_ImageCleaner_Helper_Data extends Mage_Core_Helper_Abstract { - const OPEN_IMAGE_SAME_WINDOW = 'same'; - const OPEN_IMAGE_NEW_WINDOW = 'new'; - public function scandirRecursive($dir) { $result = array(); diff --git a/app/code/community/Fballiano/ImageCleaner/etc/config.xml b/app/code/community/Fballiano/ImageCleaner/etc/config.xml index 489db71..a38390b 100644 --- a/app/code/community/Fballiano/ImageCleaner/etc/config.xml +++ b/app/code/community/Fballiano/ImageCleaner/etc/config.xml @@ -54,7 +54,6 @@ 200 1 - new diff --git a/app/code/community/Fballiano/ImageCleaner/etc/system.xml b/app/code/community/Fballiano/ImageCleaner/etc/system.xml index 48d4ab0..01bb2e3 100644 --- a/app/code/community/Fballiano/ImageCleaner/etc/system.xml +++ b/app/code/community/Fballiano/ImageCleaner/etc/system.xml @@ -26,14 +26,6 @@ 0 0 - - - select - fballiano_imagecleaner/system_config_source_howtoopenimage - 1 - 0 - 0 - textarea