This repository has been archived by the owner on Mar 27, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from damian-pastorini/magento-1.9.0.1
Magento 1.9.0.1
- Loading branch information
Showing
170 changed files
with
7,947 additions
and
1,816 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,29 +31,24 @@ | |
* @package Mage_Adminhtml | ||
* @author Magento Core Team <[email protected]> | ||
*/ | ||
class Mage_Adminhtml_Block_Cms_Wysiwyg_Images_Content_Uploader extends Mage_Adminhtml_Block_Media_Uploader | ||
class Mage_Adminhtml_Block_Cms_Wysiwyg_Images_Content_Uploader extends Mage_Uploader_Block_Multiple | ||
{ | ||
/** | ||
* Uploader block constructor | ||
*/ | ||
public function __construct() | ||
{ | ||
parent::__construct(); | ||
$params = $this->getConfig()->getParams(); | ||
$type = $this->_getMediaType(); | ||
$allowed = Mage::getSingleton('cms/wysiwyg_images_storage')->getAllowedExtensions($type); | ||
$labels = array(); | ||
$files = array(); | ||
foreach ($allowed as $ext) { | ||
$labels[] = '.' . $ext; | ||
$files[] = '*.' . $ext; | ||
} | ||
$this->getConfig() | ||
->setUrl(Mage::getModel('adminhtml/url')->addSessionParam()->getUrl('*/*/upload', array('type' => $type))) | ||
->setParams($params) | ||
->setFileField('image') | ||
->setFilters(array( | ||
'images' => array( | ||
'label' => $this->helper('cms')->__('Images (%s)', implode(', ', $labels)), | ||
'files' => $files | ||
) | ||
$this->getUploaderConfig() | ||
->setFileParameterName('image') | ||
->setTarget( | ||
Mage::getModel('adminhtml/url')->addSessionParam()->getUrl('*/*/upload', array('type' => $type)) | ||
); | ||
$this->getButtonConfig() | ||
->setAttributes(array( | ||
'accept' => $this->getButtonConfig()->getMimeTypesByExtensions($allowed) | ||
)); | ||
} | ||
|
||
|
Oops, something went wrong.