diff options
author | Andreas Unterkircher <unki@netshadow.at> | 2007-12-15 13:27:48 +0000 |
---|---|---|
committer | Andreas Unterkircher <unki@netshadow.at> | 2007-12-15 13:27:48 +0000 |
commit | b44a5c35c5978cd6d518fca5d36b8540102e2312 (patch) | |
tree | f6676830ab22713617ee952d06faf92b1312fd61 | |
parent | 1a8de008cd10b695444681c5f0d87514ffbb5e51 (diff) |
issue80, don't call get_tags every time.
git-svn-id: file:///var/lib/svn/phpfspot/trunk@314 fa6a889d-dae6-447d-9e79-4ba9a3039384
-rw-r--r-- | phpfspot.class.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php index a2ef466..ffd7e7e 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -79,8 +79,6 @@ class PHPFSPOT { /* check if all necessary indices exist */ $this->checkDbIndices(); - $this->get_tags(); - session_start(); if(!isset($_SESSION['tag_condition'])) @@ -475,6 +473,8 @@ class PHPFSPOT { */ public function getAvailableTags() { + $this->get_tags(); + $output = ""; $result = $this->db->db_query(" @@ -544,6 +544,8 @@ class PHPFSPOT { */ public function getSelectedTags() { + $this->get_tags(); + $output = ""; foreach($this->avail_tags as $tag) { @@ -1355,6 +1357,8 @@ class PHPFSPOT { */ public function startSearch($searchfor, $sort_order, $from = 0, $to = 0) { + $this->get_tags(); + $_SESSION['searchfor'] = $searchfor; $_SESSION['sort_order'] = $sort_order; if($from != 0) |