From: Sarven Capadisli Date: Mon, 22 Feb 2010 10:53:34 +0000 (+0100) Subject: Fixed error/warning message location in OStatus autorize subscription page X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f54c9b70dbabb70de93fcdd896297adfff5494f4;p=quix0rs-gnu-social.git Fixed error/warning message location in OStatus autorize subscription page --- diff --git a/plugins/OStatus/actions/ostatussub.php b/plugins/OStatus/actions/ostatussub.php index bbbd1b7e69..8cb8e2ae7c 100644 --- a/plugins/OStatus/actions/ostatussub.php +++ b/plugins/OStatus/actions/ostatussub.php @@ -58,6 +58,13 @@ class OStatusSubAction extends Action $this->showPage(); } + function showPageNotice() + { + if ($this->error) { + $this->element('p', 'error', $this->error); + } + } + /** * Content area of the page * @@ -69,11 +76,6 @@ class OStatusSubAction extends Action function showContent() { - // @fixme is this right place? - if ($this->error) { - $this->text($this->error); - } - $user = common_current_user(); $profile = $user->getProfile(); @@ -255,7 +257,7 @@ class OStatusSubAction extends Action { if ($this->validateFeed()) { $this->preview = true; - $this->showForm(_m('Previewing feed:')); + $this->showForm(); } }