]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/peopletag.php
moving delete profile to its own space.
[quix0rs-gnu-social.git] / actions / peopletag.php
index 7dede384ef99805c46bee328f067182af67ad9b6..c508e05943c50382cb6f9d966a0b7bb31418381a 100644 (file)
@@ -45,12 +45,12 @@ class PeopletagAction extends Action {
                common_show_header(sprintf(_('Users self-tagged with %s - page %d'), $tag, $page),
                                                   NULL, $tag, array($this, 'show_top'));
 
-               $this->show_people($tag);
+               $this->show_people($tag, $page);
 
                common_show_footer();
        }
 
-       function show_people($tag) {
+       function show_people($tag, $page) {
                
                $profile = new Profile();
 
@@ -70,7 +70,7 @@ class PeopletagAction extends Action {
                                                                'ON profile.id = profile_tag.tagger ' .
                                                                'WHERE profile_tag.tagger = profile_tag.tagged ' .
                                                                'AND tag = "%s" ' .
-                                                               'ORDER BY profile_tag.created DESC ' . 
+                                                               'ORDER BY profile_tag.modified DESC ' . 
                                                                $lim, $tag));
 
                $pl = new ProfileList($profile);
@@ -84,18 +84,15 @@ class PeopletagAction extends Action {
        }
        
        function show_top($tag) {
-               $instr = $this->get_instructions();
-               $output = common_markup_to_html($instr);
+               $instr = sprintf(_('These are users who have tagged themselves "%s" ' .
+                                                  'to show a common interest, characteristic, hobby or job.'), $tag);
                common_element_start('div', 'instructions');
-               common_raw($output);
+               common_element_start('p');
+               common_text($instr);
+               common_element_end('p');
                common_element_end('div');
        }
 
-       function get_instructions($tag) {
-               return sprintf(_('These are %%site.name%% users who have tagged themselves "%s" ' .
-                                                'to show a common interest, characteristic, hobby or job.'), $tag);
-       }
-       
        function get_title() {
                return NULL;
        }