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
1 changed files with 8 additions and 6 deletions

View File

@ -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();
}
}