limit line-height in tags-listing
[phpfspot.git] / phpfspot.class.php
index 6800da209794bd315979ec3f6926533491b4debb..0a59d96c6eb804fc29fce69bc27a486815b00ddb 100644 (file)
@@ -679,11 +679,17 @@ class PHPFSPOT {
 
    } // setTagCondition()
 
-   public function startSearch($searchfor)
+   public function startTagSearch($searchfor)
    {
       $_SESSION['searchfor'] = $searchfor;
+      $_SESSION['selected_tags'] = Array();
 
-   } // startSearch()
+      foreach($this->avail_tags as $tag) {
+         if(preg_match('/'. $searchfor .'/i', $this->tags[$tag]))
+            array_push($_SESSION['selected_tags'], $tag);
+      }
+
+   } // startTagSearch()
 
    private function rotateImage($img, $degrees)
    {