]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/tag.php
Preparing File for dynamic thumbnail generation.
[quix0rs-gnu-social.git] / actions / tag.php
index 33339cb8bfd153fd95976cfe684dc476ad1300ee..21cae9aba5127e43a83209fc52da13432f384d7b 100644 (file)
@@ -23,6 +23,8 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); }
 class TagAction extends Action
 {
     var $notice;
+    var $tag;
+    var $page;
 
     function prepare($args)
     {
@@ -32,13 +34,10 @@ class TagAction extends Action
 
         if (!$this->tag) {
             common_redirect(common_local_url('publictagcloud'), 301);
-            return false;
         }
 
         if ($this->tag != $taginput) {
-            common_redirect(common_local_url('tag', array('tag' => $this->tag)),
-                            301);
-            return false;
+            common_redirect(common_local_url('tag', array('tag' => $this->tag)), 301);
         }
 
         $this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1;