]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/public.php
Add top posters section to public page
[quix0rs-gnu-social.git] / actions / public.php
index 62071ecccd471ede5e5b1f1aaef793c73088ce40..880b651e15bf3b39c198092132a22a9869db7219 100644 (file)
@@ -165,7 +165,7 @@ class PublicAction extends Action
                                        NOTICES_PER_PAGE + 1);
 
         if (!$notice) {
-            $this->server_error(_('Could not retrieve public stream.'));
+            $this->serverError(_('Could not retrieve public stream.'));
             return;
         }
 
@@ -197,4 +197,10 @@ class PublicAction extends Action
                                    'version' => 'Atom 1.0',
                                    'item' => 'publicatom')));
     }
+
+    function showSections()
+    {
+        $top = new TopPostersSection($this);
+        $top->show();
+    }
 }