1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 01:39:28 +02:00

Use arts in a more generic way

Add library_item interface
This commit is contained in:
Afterster 2014-07-07 01:40:14 +02:00
parent d842ebbb00
commit 4454696f29
45 changed files with 767 additions and 330 deletions

View file

@ -27,12 +27,7 @@ UI::show_header();
switch ($_REQUEST['action']) {
case 'show_video':
default:
$type = 'Video';
if (isset($_REQUEST['type'])) {
$type = Video::validate_type($_REQUEST['type']);
}
$video = new $type($_REQUEST['video_id']);
$video = Video::create_from_id($_REQUEST['video_id']);
$video->format();
require_once AmpConfig::get('prefix') . '/templates/show_video.inc.php';
break;