From e73a0078128cc3154c8c70d57fd3c9c8112087b9 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Wed, 27 Jul 2016 18:46:36 +0200 Subject: Assignment: use Model --- include/assignments.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/assignments.php') diff --git a/include/assignments.php b/include/assignments.php index 7c3c79d..32e0c20 100644 --- a/include/assignments.php +++ b/include/assignments.php @@ -46,7 +46,7 @@ require('./header.php'); $id = (int) $_GET['id']; try { $assignment = new Assignment($_pdo, $id); - $header = "Assignments / {$assignment->getTitle()}"; + $header = "Assignments / {$assignment->title}"; $show_individual = $id; } catch (PDOException $e) { $alert = "
The assignment with id $id could not be found.
"; @@ -66,9 +66,9 @@ require('./header.php'); try { $assignment = new Assignment($_pdo, $id); if ($assignment->delete()) { - echo "
The assignment with title {$assignment->getTitle()} has been removed.
"; + echo "
The assignment with title {$assignment->title} has been removed.
"; } else { - echo "
The assignment with title {$assignment->getTitle()} could not be removed. Perhaps it's already removed?
"; + echo "
The assignment with title {$assignment->title} could not be removed. Perhaps it's already removed?
"; } } catch (PDOException $e) { echo "
The assignment could not be removed due to a PDO error.
"; -- cgit v1.2.3