Skip to content

Commit 03896ee

Browse files
author
pini-girit
committed
v3.1.2,CLOUDINARY-271: Added another event that autoload registering in order to support shell scripts and updated README
1 parent ed41baa commit 03896ee

File tree

7 files changed

+26
-13
lines changed

7 files changed

+26
-13
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Magento 1 module for integration with Cloudinary.
1010
3. Install the package...
1111

1212
## Install Manually
13-
1. Download & copy/drag the directories `app`, `lib` & `skin` into your Magento 1 root dir.
13+
1. Download & copy/drag the directories `app`, `js`, `lib` & `skin` into your Magento 1 root dir.
1414
2. Clear cache from Magento admin panel or by running `rm -rf var/cache/* var/full_page_cache/*` under your Magento 1 root dir.
1515

1616
## Install Using Modman

app/code/community/Cloudinary/Cloudinary/Helper/Autoloader.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,18 @@ class Cloudinary_Cloudinary_Helper_Autoloader
77
const CLOUDINARY_LIB_PATH = 'Cloudinary';
88
const CONVERT_CLASS_TO_PATH_REGEX = '#\\\|_(?!.*\\\)#';
99

10+
private $_registered;
1011
private $_originalAutoloaders;
1112

1213
public function register()
1314
{
14-
$this->_deregisterVarienAutoloaders();
15-
$this->_registerCloudinaryAutoloader();
16-
$this->_registerCloudinaryExtensionAutoloader();
17-
$this->_reregisterVarienAutoloaders();
15+
if(!$this->_registered){
16+
$this->_registered = true;
17+
$this->_deregisterVarienAutoloaders();
18+
$this->_registerCloudinaryAutoloader();
19+
$this->_registerCloudinaryExtensionAutoloader();
20+
$this->_reregisterVarienAutoloaders();
21+
}
1822
}
1923

2024
private function _registerCloudinaryExtensionAutoloader()
@@ -67,4 +71,4 @@ private function _reregisterVarienAutoloaders()
6771
spl_autoload_register($autoloader);
6872
}
6973
}
70-
}
74+
}

app/code/community/Cloudinary/Cloudinary/etc/config.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,15 @@
128128
</load_custom_autoloaders>
129129
</observers>
130130
</controller_front_init_before>
131+
<core_collection_abstract_load_before>
132+
<observers>
133+
<load_custom_autoloaders2>
134+
<type>singleton</type>
135+
<class>cloudinary_cloudinary/observer_system</class>
136+
<method>loadCustomAutoloaders</method>
137+
</load_custom_autoloaders2>
138+
</observers>
139+
</core_collection_abstract_load_before>
131140
</events>
132141
<resources>
133142
<cloudinary_setup>
-518 KB
Binary file not shown.
518 KB
Binary file not shown.

var/connect/Cloudinary_Cloudinary.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<_>
2-
<form_key>UQi1chJu9f8zOXQ6</form_key>
2+
<form_key>3koVpGc1HNOKsgdQ</form_key>
33
<name>Cloudinary_Cloudinary</name>
44
<channel>community</channel>
55
<version_ids>
@@ -9,7 +9,7 @@
99
<description>Cloudinary supercharges your images! Upload images to the cloud, deliver optimized via a fast CDN, perform smart resizing and apply effects.</description>
1010
<license>MIT License (MITL)</license>
1111
<license_uri/>
12-
<version>3.1.1</version>
12+
<version>3.1.2</version>
1313
<stability>stable</stability>
1414
<notes> - Match MEQP1 coding standards
1515
</notes>
@@ -41,7 +41,7 @@
4141
<max/>
4242
</max>
4343
<files>
44-
<files> </files>
44+
<files> </files>
4545
</files>
4646
</package>
4747
<extension>

var/connect/package.xml

Lines changed: 4 additions & 4 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)