Plumrocket_Base - Version 1.0.2

Version Notes

Minor fixes

Download this release

Release Info

Developer Plumrocket Team
Extension Plumrocket_Base
Version 1.0.2
Comparing to
See all releases


Code changes from version 1.0.1 to 1.0.2

app/code/community/Plumrocket/Base/Helper/Data.php CHANGED
@@ -26,5 +26,21 @@ class Plumrocket_Base_Helper_Data extends Mage_Core_Helper_Abstract
26
  && ($module->is('active', 'true'))
27
  && !Mage::getStoreConfig('advanced/modules_disable_output/Mage_AdminNotification'));
28
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  }
30
 
26
  && ($module->is('active', 'true'))
27
  && !Mage::getStoreConfig('advanced/modules_disable_output/Mage_AdminNotification'));
28
  }
29
+
30
+
31
+ public function getAllPlumrocketModules()
32
+ {
33
+ $modules = (array)Mage::getConfig()->getNode('modules')->children();
34
+
35
+ $result = array();
36
+ foreach($modules as $key => $module) {
37
+ if ( strpos($key, 'Plumrocket_') !== false && $module->is('active')) {
38
+ $result[$key] = $module;
39
+ }
40
+ }
41
+
42
+ return $result;
43
+ }
44
+
45
  }
46
 
app/code/community/Plumrocket/Base/Model/Feed.php CHANGED
@@ -40,7 +40,20 @@ class Plumrocket_Base_Model_Feed extends Mage_AdminNotification_Model_Feed
40
  $this->_feedUrl .= 'index/';
41
  }
42
 
43
- return $this->_feedUrl . 'domain/' . urlencode($domain);
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  }
45
 
46
  public function checkUpdate()
@@ -73,7 +86,7 @@ class Plumrocket_Base_Model_Feed extends Mage_AdminNotification_Model_Feed
73
  }
74
  $this->setLastUpdate();
75
  return $this;
76
- } catch (Exception $E) {
77
  return false;
78
  }
79
  }
40
  $this->_feedUrl .= 'index/';
41
  }
42
 
43
+ $url = $this->_feedUrl . 'domain/' . urlencode($domain);
44
+
45
+ $modulesParams = array();
46
+ $plumrocketModules = Mage::helper('plumbase')->getAllPlumrocketModules();
47
+ foreach($plumrocketModules as $key => $module) {
48
+ $key = str_replace('Plumrocket_', '', $key);
49
+ $modulesParams[] = $key . ( ($module->version) ? ','.$module->version : '' );
50
+ }
51
+
52
+ if (count($modulesParams)) {
53
+ $url .= '/modules/'.base64_encode(implode(';', $modulesParams));
54
+ }
55
+
56
+ return $url;
57
  }
58
 
59
  public function checkUpdate()
86
  }
87
  $this->setLastUpdate();
88
  return $this;
89
+ } catch (Exception $e) {
90
  return false;
91
  }
92
  }
app/code/community/Plumrocket/Base/etc/config.xml CHANGED
@@ -3,7 +3,7 @@
3
 
4
  <modules>
5
  <Plumrocket_Base>
6
- <version>1.0.0</version>
7
  </Plumrocket_Base>
8
  </modules>
9
 
3
 
4
  <modules>
5
  <Plumrocket_Base>
6
+ <version>1.0.2</version>
7
  </Plumrocket_Base>
8
  </modules>
9
 
app/etc/modules/Plumrocket_Base.xml CHANGED
@@ -4,7 +4,7 @@
4
  <Plumrocket_Base>
5
  <active>true</active>
6
  <codePool>community</codePool>
7
- <version>1.0.0</version>
8
  </Plumrocket_Base>
9
  </modules>
10
  </config>
4
  <Plumrocket_Base>
5
  <active>true</active>
6
  <codePool>community</codePool>
7
+ <version>1.0.2</version>
8
  </Plumrocket_Base>
9
  </modules>
10
  </config>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Plumrocket_Base</name>
4
- <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://wiki.plumrocket.net/wiki/EULA">End-user License Agreement</license>
7
  <channel>community</channel>
@@ -11,9 +11,9 @@
11
  It will notify you about the new changes, fixes and updates using notifications popup at your magento backend and will let you be on track with the recent modifications.</description>
12
  <notes>Minor fixes</notes>
13
  <authors><author><name>Plumrocket Team</name><user>plumrocket</user><email>support@plumrocket.com</email></author></authors>
14
- <date>2014-07-09</date>
15
- <time>11:00:44</time>
16
- <contents><target name="magecommunity"><dir name="Plumrocket"><dir name="Base"><dir name="Helper"><file name="Data.php" hash="9e534ce8140731b96a0257a0a25060a7"/></dir><dir name="Model"><file name="Feed.php" hash="7412a21e6d1edd226fce19f3609de602"/></dir><dir name="etc"><file name="config.xml" hash="f01dda8545a580cfbe6d723cf5490def"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Plumrocket_Base.xml" hash="a168acb7d8c05758401655a26857ff50"/></dir></target></contents>
17
  <compatible/>
18
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
19
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Plumrocket_Base</name>
4
+ <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://wiki.plumrocket.net/wiki/EULA">End-user License Agreement</license>
7
  <channel>community</channel>
11
  It will notify you about the new changes, fixes and updates using notifications popup at your magento backend and will let you be on track with the recent modifications.</description>
12
  <notes>Minor fixes</notes>
13
  <authors><author><name>Plumrocket Team</name><user>plumrocket</user><email>support@plumrocket.com</email></author></authors>
14
+ <date>2014-09-23</date>
15
+ <time>12:00:47</time>
16
+ <contents><target name="magecommunity"><dir name="Plumrocket"><dir name="Base"><dir name="Helper"><file name="Data.php" hash="413017647939cbbe66613f4a2ba92d12"/></dir><dir name="Model"><file name="Feed.php" hash="819cc8d8ebd053da6a88411811251d43"/></dir><dir name="etc"><file name="config.xml" hash="47e4b3e555aca66c7776803ef6a041fd"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Plumrocket_Base.xml" hash="75a7ef67d843b1d4e6f4b73aa6491d71"/></dir></target></contents>
17
  <compatible/>
18
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
19
  </package>