From: Andreas Unterkircher Date: Mon, 12 May 2008 06:03:25 +0000 (+0200) Subject: issue118, fix using variable name for search.tpl and photo_index.tpl twice X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=commitdiff_plain;h=94b3b6259391b0d2f206c792974b6ff53a70aa63;hp=3d867f5190b42114820df35143a46c8bc8521404 issue118, fix using variable name for search.tpl and photo_index.tpl twice Signed-off-by: Andreas Unterkircher --- diff --git a/phpfspot.class.php b/phpfspot.class.php index f64e9ff..00b3af4 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -311,8 +311,8 @@ class PHPFSPOT { $this->tmpl->assign('date_search_enabled', true); $this->tmpl->register_function("sort_select_list", array(&$this, "smarty_sort_select_list"), false); - $this->tmpl->assign('from_date', $this->get_calendar('from')); - $this->tmpl->assign('to_date', $this->get_calendar('to')); + $this->tmpl->assign('search_from_date', $this->get_calendar('from')); + $this->tmpl->assign('search_to_date', $this->get_calendar('to')); $this->tmpl->assign('preset_selected_tags', $this->getSelectedTags()); $this->tmpl->assign('preset_available_tags', $this->getAvailableTags()); diff --git a/themes/default/templates/search.tpl b/themes/default/templates/search.tpl index 401d9af..767cbcf 100644 --- a/themes/default/templates/search.tpl +++ b/themes/default/templates/search.tpl @@ -51,13 +51,11 @@   - {$from_date} from + {$search_from_date} from   - - {$to_date} to - + {$search_to_date} to