diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/views/expo.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/core/views/expo.py b/core/views/expo.py index 55a34be..00cb6dc 100644 --- a/core/views/expo.py +++ b/core/views/expo.py @@ -168,12 +168,9 @@ def expowebpage(request, expowebpath, path): editable = os.access(expowebpath / path, os.W_OK) # are file permissions writeable? has_menu = False - menumatch = re.match(r'(.*)<div id="menu">', body, re.DOTALL + re.IGNORECASE) - if menumatch: - has_menu = True menumatch = re.match(r'(.*)<ul id="links">', body, re.DOTALL + re.IGNORECASE) if menumatch: - has_menu = True + has_menu = False #Determine which caves this page relates to m = re.search(r"(162\d\/[^\/]+)[\/\.]", path, re.DOTALL + re.IGNORECASE) |