Updates to pages to reflect lib code changes

This commit is contained in:
2010-08-30 22:05:30 +01:00
parent 22613e030e
commit 9f2d694265
5 changed files with 15 additions and 12 deletions

View File

@@ -7,10 +7,10 @@ $config = $main->config();
// Grab the name of this source
$encoded_filename = null;
if ($req->get('submit')) {
$encoded_filename = RippingCluster_Main::issetelse($_POST['id'], RippingCluster_Exception_InvalidParameters);
$encoded_filename = RippingCluster_Main::issetelse($_POST['id'], 'RippingCluster_Exception_InvalidParameters');
// Create the jobs from the request
$jobs = RippingCluster_Job::fromPostRequest($_POST['id'], $_POST['rip-options'], $_POST['rips']);
$jobs = RippingCluster_Job::fromPostRequest($_POST['plugin'], $_POST['id'], $_POST['rip-options'], $_POST['rips']);
// Spawn the background client process to run all the jobs
RippingCluster_Job::runAllJobs();
@@ -22,9 +22,10 @@ if ($req->get('submit')) {
} else {
$this->smarty->assign('rips_submitted', false);
$encoded_filename = $req->get('id', RippingCluster_Exception_InvalidParameters);
$source = RippingCluster_Rips_Source::loadEncoded($encoded_filename);
$encoded_filename = $req->get('id', 'RippingCluster_Exception_InvalidParameters');
$plugin = $req->get('plugin', 'RippingCluster_Exception_InvalidParameters');
$source = RippingCluster_Source_PluginFactory::loadEncoded($plugin, $encoded_filename);
$this->smarty->assign('source', $source);
$this->smarty->assign('titles', $source->titles());