diff options
author | Andreas Hubel | 2020-06-07 21:46:17 +0200 |
---|---|---|
committer | Andreas Hubel | 2020-06-07 21:50:55 +0200 |
commit | 433045f405b41ed7560769a8b65ca2ee77c9f876 (patch) | |
tree | 371f667331668130d1f417fc820da81d12cfd7ae | |
parent | a66c79184091efdac09ee31a3778c6fc850dbbda (diff) |
fix?
-rw-r--r-- | index.php | 2 | ||||
-rw-r--r-- | template/page.phtml | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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 @@ <script type="text/javascript" src="<?=h($assets)?>js/lib/bootstrap-datepicker.min.js"></script> - <? if(isset($GLOBALS['netcut']) && $GLOBALS['netcut'] === true): ?> + <? if(isset($netcut) && $netcut === true): ?> <link href="<?=h($assets)?>netcut/lib/videojs/video-js.min.css" rel="stylesheet"> <link href="<?=h($assets)?>netcut/lib/videojs-markers/videojs.markers.min.css" rel="stylesheet"> <link href="<?=h($assets)?>netcut/assets/style.css" rel="stylesheet"> |