]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/featured.php
Make the OpenID settings work with new framework
[quix0rs-gnu-social.git] / actions / featured.php
index 2ff4f7745dbe2a622111ebd20b976a4b63e4c9d3..0356226914d1c3845f78d473ee14422ae4bcc55a 100644 (file)
@@ -22,15 +22,17 @@ if (!defined('LACONICA')) { exit(1); }
 require_once(INSTALLDIR.'/lib/stream.php');
 require_once(INSTALLDIR.'/lib/profilelist.php');
 
-class FeaturedAction extends StreamAction {
+class FeaturedAction extends StreamAction
+{
 
-    function handle($args) {
+    function handle($args)
+    {
         parent::handle($args);
 
         $page = ($this->arg('page')) ? ($this->arg('page')+0) : 1;
 
         common_show_header(_('Featured users'),
-                           array($this, 'show_header'), NULL,
+                           array($this, 'show_header'), null,
                            array($this, 'show_top'));
 
         $this->show_notices($page);
@@ -38,23 +40,27 @@ class FeaturedAction extends StreamAction {
         common_show_footer();
     }
 
-    function show_top() {
+    function show_top()
+    {
         $instr = $this->get_instructions();
         $output = common_markup_to_html($instr);
-        common_element_start('div', 'instructions');
-        common_raw($output);
-        common_element_end('div');
+        $this->elementStart('div', 'instructions');
+        $this->raw($output);
+        $this->elementEnd('div');
         $this->public_views_menu();
     }
 
-    function show_header() {
+    function show_header()
+    {
     }
 
-    function get_instructions() {
+    function get_instructions()
+    {
         return _('Featured users');
     }
 
-    function show_notices($page) {
+    function show_notices($page)
+    {
 
         // XXX: Note I'm doing it this two-stage way because a raw query
         // with a JOIN was *not* working. --Zach