Fixed error/warning message location in OStatus autorize subscription page

This commit is contained in:
Sarven Capadisli 2010-02-22 11:53:34 +01:00
parent 17ed30dffc
commit f54c9b70db

View File

@ -58,6 +58,13 @@ class OStatusSubAction extends Action
$this->showPage(); $this->showPage();
} }
function showPageNotice()
{
if ($this->error) {
$this->element('p', 'error', $this->error);
}
}
/** /**
* Content area of the page * Content area of the page
* *
@ -69,11 +76,6 @@ class OStatusSubAction extends Action
function showContent() function showContent()
{ {
// @fixme is this right place?
if ($this->error) {
$this->text($this->error);
}
$user = common_current_user(); $user = common_current_user();
$profile = $user->getProfile(); $profile = $user->getProfile();
@ -255,7 +257,7 @@ class OStatusSubAction extends Action
{ {
if ($this->validateFeed()) { if ($this->validateFeed()) {
$this->preview = true; $this->preview = true;
$this->showForm(_m('Previewing feed:')); $this->showForm();
} }
} }