From 814c65fe4c3587aff3a5a630baee68edbbc820b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor?= Date: Thu, 17 Nov 2016 10:01:29 +0100 Subject: [PATCH] Update e_marketplace.php --- e107_handlers/e_marketplace.php | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/e107_handlers/e_marketplace.php b/e107_handlers/e_marketplace.php index 0357234da..e4801e830 100644 --- a/e107_handlers/e_marketplace.php +++ b/e107_handlers/e_marketplace.php @@ -372,7 +372,7 @@ abstract class e_marketplace_adapter_abstract $remotefile = $this->downloadUrl."?auth=".$this->getAuthKey()."&".$qry; $localfile = md5($remotefile.time()).".zip"; - $mes->addSuccess("Downloading..."); + $mes->addSuccess(TPVLAN_81); // FIXME call the service, check status first, then download (if status OK), else retireve the error break and show it @@ -394,7 +394,7 @@ abstract class e_marketplace_adapter_abstract if(!file_exists(e_TEMP.$localfile)) { - $mes->addError( "Automated download not possible. Please Download Manually"); + $mes->addError($tp->lanVars(TPVLAN_83, array('x' => ''.TPVLAN_84.'',))); if(E107_DEBUG_LEVEL > 0) { @@ -407,23 +407,16 @@ abstract class e_marketplace_adapter_abstract if($fl->unzipArchive($localfile,$type)) { - $mes->addSuccess("Download Complete!"); + $mes->addSuccess(TPVLAN_82); return true; } else { - $mes->addSuccess( "Download Manually"); // flush(); usleep(50000); + $mes->addSuccess( "".TPVLAN_84.""); } return false; } - - - - - - - @@ -510,7 +503,7 @@ class e_marketplace_adapter_wsdl extends e_marketplace_adapter_abstract } catch (Exception $e) { - e107::getMessage()->addError("Unable to connect. Please check firewall and/or internet connection."); + e107::getMessage()->addError(TPVLAN_90); e107::getMessage()->addDebug($e->getMessage()); }