From d423955eaf0ebd548e561a1b349800294c8be4f9 Mon Sep 17 00:00:00 2001 From: jimmacfx Date: Tue, 14 Feb 2006 22:13:26 +0000 Subject: make no future date limits git-svn-id: https://forgesvn1.novell.com/svn/original/trunk@11 4fa712ea-3c06-0410-9261-c11b4c06c003 --- www/inc/config.inc.php | 1 - www/index.php | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/www/inc/config.inc.php b/www/inc/config.inc.php index c800fac..7f007b3 100644 --- a/www/inc/config.inc.php +++ b/www/inc/config.inc.php @@ -31,7 +31,6 @@ $scnamegallery = "Photo Gallery Index"; # =========================================================================== # albums to show $yearsince = 1999; - $yearto = 2005; #images FIXME - this is stylesheet's job $img["left"] = "left.png"; $img["right"] = "right.png"; diff --git a/www/index.php b/www/index.php index 1483b84..74dd5a6 100644 --- a/www/index.php +++ b/www/index.php @@ -106,6 +106,7 @@ if (!$galerie) { $thisyear = 0; + if (!$yearto) $yearto = date("Y"); for ($i = $yearto; $i >= $yearsince; $i--) { for ($thismonth=12; $thismonth>0; $thismonth--) { // go year by year, month by month // down -- cgit v1.2.3