diff options
-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"> |