summaryrefslogtreecommitdiffstats
path: root/phpfspot.class.php
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2008-05-25 08:58:31 +0200
committerAndreas Unterkircher <unki@netshadow.at>2008-05-25 08:58:31 +0200
commit546c79577bacc29e984438e59b5eea43e5043043 (patch)
tree0cbe5893bed0c0699abe60861721dd0420b755a8 /phpfspot.class.php
parent4686714d35c3758f32b56cee37d446d24b579698 (diff)
fix photo index, current-tags must be fetched earlier
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r--phpfspot.class.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index 58cda4e..f959eda 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -1322,6 +1322,7 @@ class PHPFSPOT {
public function showPhotoIndex()
{
$photos = $this->getPhotoSelection();
+ $current_tags = $this->getCurrentTags();
$count = count($photos);
@@ -1479,7 +1480,6 @@ class PHPFSPOT {
$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 != "") {
@@ -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()