Skip to content

Commit

Permalink
Merge branch 'master' of github.com:unl/UNL_MediaHub
Browse files Browse the repository at this point in the history
  • Loading branch information
mfairchild365 committed Jan 25, 2012
2 parents 1f919de + 68b1144 commit a7065d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/UNL/MediaHub/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ function preRun($cached)
case 'json':
header('Content-type: application/json');
break;
case 'vtt':
header('Content-type: text/vtt');
break;
default:
break;
}
Expand Down
1 change: 1 addition & 0 deletions src/UNL/MediaHub/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public static function getRoute($requestURI)
break;
case preg_match('/^media\/([0-9]+)\/vtt$/', $requestURI, $matches):
$options['view'] = 'media_vtt';
$options['format'] = 'vtt';
$options['id'] = $matches[1];
break;
case preg_match('/^media\/([0-9]+)\/image(\.[\w]+)?$/', $requestURI, $matches):
Expand Down

0 comments on commit a7065d2

Please sign in to comment.