]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fixed error/warning message location in OStatus autorize subscription page
authorSarven Capadisli <csarven@status.net>
Mon, 22 Feb 2010 10:53:34 +0000 (11:53 +0100)
committerSarven Capadisli <csarven@status.net>
Mon, 22 Feb 2010 10:53:34 +0000 (11:53 +0100)
plugins/OStatus/actions/ostatussub.php

index bbbd1b7e691284e7734b198aac0bea3b4de140e1..8cb8e2ae7c89e531ae2a5688a3430aaeb41fd8c5 100644 (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();
         }
     }