public function activateUpdate($d = array()) { $plugName = isset($d['plugName']) ? $d['plugName'] : ''; if (!empty($plugName)) { $activationKey = isset($d['activation_key']) ? $d['activation_key'] : ''; if (!empty($activationKey)) { $result = modInstallerGmp::activateUpdate($plugName, $activationKey); if ($result === true) { return true; } elseif (is_array($result)) { // Array with errors $this->pushError($result); } else { $this->pushError(langGmp::_('Can not contact authorization server for now.')); $this->pushError(langGmp::_('Please try again latter.')); $this->pushError(langGmp::_('If problem will not stop - please contact us using this form <a href="http://readyshoppingcart.com/contacts/" target="_blank">http://readyshoppingcart.com/contacts/</a>.')); } } else { $this->pushError(langGmp::_('Please enter activation key')); } } else { $this->pushError(langGmp::_('Empty plugin name')); } }