]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/public.php
Extract image management code to a helper function
[quix0rs-gnu-social.git] / actions / public.php
index e00f8efbaf27870016825d8fd6ba39886db4ba47..0ceeef98e8c1cf4f5e5e5a25f46d8733ad1cfd7a 100644 (file)
@@ -31,6 +31,10 @@ if (!defined('LACONICA')) {
     exit(1);
 }
 
+require_once INSTALLDIR.'/lib/publicgroupnav.php';
+require_once INSTALLDIR.'/lib/noticelist.php';
+require_once INSTALLDIR.'/lib/feedlist.php';
+
 /**
  * Action for displaying the public stream
  *
@@ -161,11 +165,11 @@ 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;
         }
 
-        $nl = new NoticeList($notice);
+        $nl = new NoticeList($notice, $this);
 
         $cnt = $nl->show();