Skip to content

Instantly share code, notes, and snippets.

@eperrotta
Last active April 25, 2018 09:10
Show Gist options
  • Save eperrotta/ffb3bd11b0a00295ed095b48549c1c78 to your computer and use it in GitHub Desktop.
Save eperrotta/ffb3bd11b0a00295ed095b48549c1c78 to your computer and use it in GitHub Desktop.
This is a patch for the Revolution Slider Magento Extension to make it compatible with the last SUPEE-8788 Magento Patch.
diff --git a/app/design/adminhtml/default/default/layout/nwdthemes/nwdrevslider.xml b/app/design/adminhtml/default/default/layout/nwdthemes/nwdrevslider.xml
index 41dc890..16eedb0 100755
--- a/app/design/adminhtml/default/default/layout/nwdthemes/nwdrevslider.xml
+++ b/app/design/adminhtml/default/default/layout/nwdthemes/nwdrevslider.xml
@@ -50,9 +50,10 @@
<action method="addJs"><script>extjs/ext-tree.js</script></action>
<action method="addJs"><script>extjs/fix-defer.js</script></action>
<action method="addJs"><script>extjs/ext-tree-checkbox.js</script></action>
- <action method="addJs"><script>lib/flex.js</script></action>
- <action method="addJs"><script>lib/FABridge.js</script></action>
- <action method="addJs"><script>mage/adminhtml/flexuploader.js</script></action>
+ <action method="addJs"><name>lib/uploader/flow.min.js</name></action>
+ <action method="addJs"><name>lib/uploader/fusty-flow.js</name></action>
+ <action method="addJs"><name>lib/uploader/fusty-flow-factory.js</name></action>
+ <action method="addJs"><name>mage/adminhtml/uploader/instance.js</name></action>
<action method="addItem"><type>skin_js</type><name>nwdthemes/revslider/framework/js/browser.js</name></action>
</reference>
</nwdrevslider_images_common>
@@ -131,8 +132,10 @@
</reference>
<reference name="content">
<block name="wysiwyg_images.content" type="adminhtml/cms_wysiwyg_images_content" template="cms/browser/content.phtml">
- <block name="wysiwyg_images.uploader" type="nwdrevslider/adminhtml_images_content_uploader" template="cms/browser/content/uploader.phtml" />
- <block name="wysiwyg_images.newfolder" type="adminhtml/cms_wysiwyg_images_content_newfolder" template="cms/browser/content/newfolder.phtml" />
+ <block name="wysiwyg_images.uploader" type="adminhtml/cms_wysiwyg_images_content_uploader" template="media/uploader.phtml">
+ <block name="additional_scripts" type="core/template" template="cms/browser/content/uploader.phtml"/>
+ </block>
+ <block name="wysiwyg_images.newfolder" type="adminhtml/cms_wysiwyg_images_content_newfolder" template="cms/browser/content/newfolder.phtml" />
</block>
</reference>
</adminhtml_images_index>
--
2.8.1
@alvaroGomides
Copy link

It worked for me like a charm! Thanks a lot.

@jazzman346
Copy link

Fantastic, thanks for sharing!

@tawfekov
Copy link

tawfekov commented Feb 1, 2017

You deserve a big thank you 🥇

@Jakkara
Copy link

Jakkara commented Apr 25, 2018

I'm a bit late to the party but damn, thank you so much for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment