Skip to content
Snippets Groups Projects
Commit 13271cb3 authored by Satish's avatar Satish
Browse files

Fixes #551 - vt7: Extension banner show also 6.x extension

parent 3f33191f
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -176,7 +176,12 @@ class Settings_ExtensionStore_ExtnStore_Connector {
* @return type json reponse
*/
public function getListings($id = null, $type = 'Extension') {
$q = $id ? array('id' => $id, 'type' => $type) : array('type' => $type);
global $vtiger_current_version;
$q = array('type' => $type, 'vv'=> $vtiger_current_version);
if ($id) {
$q['id'] = $id;
}
try {
$response = $this->api('/app/listings', 'GET', $q ? array('q' => Zend_Json::encode($q)) : null, false);
return array('success' => true, 'response' => $response);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment