From 433045f405b41ed7560769a8b65ca2ee77c9f876 Mon Sep 17 00:00:00 2001
From: Andreas Hubel
Date: Sun, 7 Jun 2020 21:46:17 +0200
Subject: fix?
---
index.php | 2 +-
template/page.phtml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/index.php b/index.php
index 569a4b9..02fd136 100644
--- a/index.php
+++ b/index.php
@@ -70,7 +70,7 @@ try {
$route = rtrim($route, '/');
$GLOBALS['forceopen'] = isset($_GET['forceopen']);
- $GLOBALS['netcut'] = preg_match('@^relive/([0-9]+)/cut$@', $route);
+ $GLOBALS['netcut'] = preg_match('@/cut$@', $route);
// generic template
diff --git a/template/page.phtml b/template/page.phtml
index 4c05008..9a8fbfa 100644
--- a/template/page.phtml
+++ b/template/page.phtml
@@ -63,7 +63,7 @@
- if(isset($GLOBALS['netcut']) && $GLOBALS['netcut'] === true): ?>
+ if(isset($netcut) && $netcut === true): ?>
--
cgit v1.2.3