diff options
-rw-r--r-- | core/views/expo.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/views/expo.py b/core/views/expo.py index 9089481..4c1ce63 100644 --- a/core/views/expo.py +++ b/core/views/expo.py @@ -242,11 +242,12 @@ def expowebpage(request, expowebpath, path): parent_caves = None # Determine if this page relates to a particular year + year = current_expo() m = re.search(r"years\/(\d\d\d\d)\/.*", path, re.DOTALL + re.IGNORECASE) if m: (year,) = m.groups() else: - year = None + year = current_expo() # Determine if this page is part of the troggle handbook troggle = path.startswith("handbook/troggle") @@ -262,6 +263,7 @@ def expowebpage(request, expowebpath, path): "homepage": (path == "index.htm"), "has_menu": has_menu, "year": year, + "current_year": year, "parent_caves": parent_caves, "troggle": troggle, }, |