fix photo index, current-tags must be fetched earlier
authorAndreas Unterkircher <unki@netshadow.at>
Sun, 25 May 2008 06:58:31 +0000 (08:58 +0200)
committerAndreas Unterkircher <unki@netshadow.at>
Sun, 25 May 2008 06:58:31 +0000 (08:58 +0200)
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
phpfspot.class.php

index 58cda4e2f5776452aa56e07762aa107f17aa6834..f959eda51563e316de4456e1a7deb0a19d697a63 100644 (file)
@@ -1322,6 +1322,7 @@ class PHPFSPOT {
    public function showPhotoIndex()
    {
       $photos = $this->getPhotoSelection();
    public function showPhotoIndex()
    {
       $photos = $this->getPhotoSelection();
+      $current_tags = $this->getCurrentTags();
 
       $count = count($photos);
 
 
       $count = count($photos);
 
@@ -1479,7 +1480,6 @@ class PHPFSPOT {
             $this->tmpl->assign('page_selector', $page_select);
       }
       
             $this->tmpl->assign('page_selector', $page_select);
       }
       
-      $current_tags = $this->getCurrentTags();
       $extern_link = "index.php?mode=showpi";
       $rss_link = "index.php?mode=rss";
       if($current_tags != "") {
       $extern_link = "index.php?mode=showpi";
       $rss_link = "index.php?mode=rss";
       if($current_tags != "") {
@@ -2579,7 +2579,10 @@ class PHPFSPOT {
 
  
    /**
 
  
    /**
-    * return all selected tags as one string
+    * get all selected tags
+    *
+    * This function will return all selected tags as one string, seperated
+    * by a comma.
     * @return array
     */
    private function getCurrentTags()
     * @return array
     */
    private function getCurrentTags()