converting more of playlist.php to propel ORM.

This commit is contained in:
naomiaro 2010-11-08 17:19:01 -05:00
parent d5546c3952
commit 9f79b1bf89
20 changed files with 537 additions and 570 deletions

View file

@ -403,6 +403,13 @@ switch ($_REQUEST['act']) {
}
$uiHandler->PLAYLIST->setReload();
break;
case "PL.delete":
if (($ui_tmpid = $uiHandler->PLAYLIST->delete($_REQUEST['id'])) !== FALSE) {
$uiHandler->SCRATCHPAD->removeItems($ui_tmpid);
}
$uiHandler->PLAYLIST->setReload();
break;
case "PL.export":
$uiHandler->redirUrl = UI_BROWSER."?popup[]=PL.redirect2DownloadExportedFile&id={$_REQUEST['id']}&playlisttype={$_REQUEST['playlisttype']}&exporttype={$_REQUEST['exporttype']}";
@ -436,7 +443,6 @@ switch ($_REQUEST['act']) {
$Smarty->assign("USER_ERROR", "Scheduling conflict.");
}
//$uiHandler->SCHEDULER->setReload();
$NO_REDIRECT = true;
$_REQUEST["act"] = "SCHEDULER";
include("ui_browser.php");