We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 56fb969 + 6095f34 commit e36ea8cCopy full SHA for e36ea8c
app/code/community/Styla/Connect/Controller/Router.php
@@ -13,10 +13,19 @@ public function match(Zend_Controller_Request_Http $request)
13
}
14
15
$frontName = $this->_getFrontName($path);
16
+
17
if (!$frontName) {
18
return false;
19
20
21
+ if ($frontName == 'styla-plugin-version'){
22
+ $styla_version_arr = array();
23
+ $styla_version_config = (Array) Mage::getConfig()->getModuleConfig('Styla_Connect')->version;
24
+ $styla_version_arr['version'] = $styla_version_config[0];
25
+ echo json_encode($styla_version_arr);
26
+ exit;
27
+ }
28
29
$magazine = Mage::getModel('styla_connect/magazine')->loadByFrontName($frontName);
30
31
if (!$magazine || !$magazine->isActive()) {
0 commit comments