From b44a5c35c5978cd6d518fca5d36b8540102e2312 Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Sat, 15 Dec 2007 13:27:48 +0000 Subject: issue80, don't call get_tags every time. git-svn-id: file:///var/lib/svn/phpfspot/trunk@314 fa6a889d-dae6-447d-9e79-4ba9a3039384 --- phpfspot.class.php | 8 ++++++-- 1 file 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) -- cgit v1.2.3-18-g5258