Job details page now shows the id number for the current job, reading it from the URL using the RequestParser Fixed a bug where if no query string was provided (index.php was accessed directly) then a blank pagename was used (instead of 'home') and an exception was thrown.
18 lines
193 B
PHP
18 lines
193 B
PHP
<?php
|
|
|
|
class HandBrakeCluster_Job {
|
|
|
|
private $id;
|
|
|
|
public function __construct($id) {
|
|
$this->id = $id;
|
|
}
|
|
|
|
public function id() {
|
|
return $this->id;
|
|
}
|
|
|
|
};
|
|
|
|
?>
|