From: Marcin Haba Date: Fri, 14 Jul 2017 17:26:13 +0000 (+0200) Subject: baculum: Fix showing errors from the API X-Git-Tag: Release-9.0.2~20 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1f23fef84093b80f14663546146a83156fb367c3;p=bacula%2Fbacula baculum: Fix showing errors from the API --- diff --git a/gui/baculum/protected/Web/Pages/BaculumError.page b/gui/baculum/protected/Web/Pages/BaculumError.page index b2b4d728ad..f9acc52af8 100644 --- a/gui/baculum/protected/Web/Pages/BaculumError.page +++ b/gui/baculum/protected/Web/Pages/BaculumError.page @@ -2,10 +2,8 @@

<%[ Baculum problem ]%>

- -

Error <%=$this->error%> - <%=$this->output%>

-
-
+

Error <%=$this->error%> - <%=$this->output%>

+

<%[ TRY AGAIN ]%> <%[ or run ]%> <%[ Baculum Initial Wizard ]%> diff --git a/gui/baculum/protected/Web/Pages/BaculumError.php b/gui/baculum/protected/Web/Pages/BaculumError.php index b65a473ec3..8f047c4cec 100644 --- a/gui/baculum/protected/Web/Pages/BaculumError.php +++ b/gui/baculum/protected/Web/Pages/BaculumError.php @@ -23,12 +23,13 @@ Prado::using('Application.Web.Class.BaculumWebPage'); class BaculumError extends BaculumWebPage { + public $error; public $output; public function onInit($param) { $this->error = intval($this->Request['error']); - $this->output = $this->Request['output']; + $this->output = urldecode($this->Request['output']); } } ?>