From 402b9c2ebb38b6bc435b9dcfba4756a9e1fd2d91 Mon Sep 17 00:00:00 2001 From: hahn <axel.hahn@iml.unibe.ch> Date: Tue, 19 Dec 2017 16:25:19 +0100 Subject: [PATCH] add ci url to message --- public_html/deployment/classes/project.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public_html/deployment/classes/project.class.php b/public_html/deployment/classes/project.class.php index ac48597b..43aa1133 100644 --- a/public_html/deployment/classes/project.class.php +++ b/public_html/deployment/classes/project.class.php @@ -165,9 +165,14 @@ class project extends base { . t('page-login-username'). ": ".$this->oUser->getUsername()."\n" ; if (isset($_SERVER) && is_array($_SERVER)) { + if(array_key_exists('HTTP_HOST', $_SERVER)){ + $sText.= t('project-home').": <".$_SERVER['SERVER_PROTOCOL'] .'://'. $_SERVER['HTTP_HOST'].'/deployment/'.$this->getId()."/>\n"; + } + /* if(array_key_exists('HTTP_ORIGIN', $_SERVER)){ $sText.= t('project-home').": <".$_SERVER['HTTP_ORIGIN'].'/deployment/'.$this->getId()."/>\n"; } + */ } return $this->oMessenger->sendMessage($sText); } @@ -2134,7 +2139,7 @@ class project extends base { $sReturn.="<br>"; $sReturn.=$oHtml->getBox("success", t("class-project-info-deploy-successful")); - $this->_sendMessage(t("class-project-info-deploy-successful")."\n"."phase: $sPhase"); + $this->_sendMessage(t("class-project-info-deploy-successful")."\nphase: ${sPhase}\n"); $this->_logaction(t('finished') . " deploy($sPhase, $bIgnoreDeploytimes) " . t("class-project-info-deploy-successful"), __FUNCTION__, "success"); $this->_TempDelete(); return $sReturn; -- GitLab