/** * Display method * * @access public */ public function display() { if (!isset($_GET['id'])) { $this->display_404(); } try { $picture = Picture::get_by_id($_GET['id']); } catch (Exception $e) { $this->display_404(); } if (isset($_GET['size'])) { $picture->show($_GET['size']); } else { $picture->show(); } }