aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.php2
-rw-r--r--template/page.phtml2
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 @@
<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">