diff options
author | Camil Staps | 2016-07-27 18:46:36 +0200 |
---|---|---|
committer | Camil Staps | 2016-07-27 20:48:46 +0200 |
commit | e73a0078128cc3154c8c70d57fd3c9c8112087b9 (patch) | |
tree | a2e0151c8c924af53b77115f53e964993cebe1f0 /include/assignments.php | |
parent | User: use Model (diff) |
Assignment: use Model
Diffstat (limited to 'include/assignments.php')
-rw-r--r-- | include/assignments.php | 6 |
1 files changed, 3 insertions, 3 deletions
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 = "<a href='".Constants::url_external."assignments'>Assignments</a> / {$assignment->getTitle()}"; + $header = "<a href='".Constants::url_external."assignments'>Assignments</a> / {$assignment->title}"; $show_individual = $id; } catch (PDOException $e) { $alert = "<div class='alert alert-danger alert-dismissable'><button type='button' class='close fa fa-times' data-dismiss='alert' aria-hidden='true'></button>The assignment with id $id</i> could not be found.</div>"; @@ -66,9 +66,9 @@ require('./header.php'); try { $assignment = new Assignment($_pdo, $id); if ($assignment->delete()) { - echo "<div class='alert alert-success alert-dismissable'><button type='button' class='close fa fa-times' data-dismiss='alert' aria-hidden='true'></button>The assignment with title <i>{$assignment->getTitle()}</i> has been removed.</div>"; + echo "<div class='alert alert-success alert-dismissable'><button type='button' class='close fa fa-times' data-dismiss='alert' aria-hidden='true'></button>The assignment with title <i>{$assignment->title}</i> has been removed.</div>"; } else { - echo "<div class='alert alert-warning alert-dismissable'><button type='button' class='close fa fa-times' data-dismiss='alert' aria-hidden='true'></button>The assignment with title <i>{$assignment->getTitle()}</i> could not be removed. Perhaps it's already removed?</div>"; + echo "<div class='alert alert-warning alert-dismissable'><button type='button' class='close fa fa-times' data-dismiss='alert' aria-hidden='true'></button>The assignment with title <i>{$assignment->title}</i> could not be removed. Perhaps it's already removed?</div>"; } } catch (PDOException $e) { echo "<div class='alert alert-danger alert-dismissable'><button type='button' class='close fa fa-times' data-dismiss='alert' aria-hidden='true'></button>The assignment could not be removed due to a PDO error.</div>"; |