diff options
author | Camil Staps | 2016-07-27 16:48:53 +0200 |
---|---|---|
committer | Camil Staps | 2016-07-27 17:08:12 +0200 |
commit | 21455bfd1004c4a3153050ac5995b8dc680c2042 (patch) | |
tree | b448f9d94cd9b6addb6d6b391001c418243cc13d /include/assignments.php | |
parent | Removed error reporting (diff) |
Class names start with a capital
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 14ed8da..7c3c79d 100644 --- a/include/assignments.php +++ b/include/assignments.php @@ -45,8 +45,8 @@ require('./header.php'); if (isset($_GET['id'])) { $id = (int) $_GET['id']; try { - $assignment = new assignment($_pdo, $id); - $header = "<a href='".constants::url_external."assignments'>Assignments</a> / {$assignment->getTitle()}"; + $assignment = new Assignment($_pdo, $id); + $header = "<a href='".Constants::url_external."assignments'>Assignments</a> / {$assignment->getTitle()}"; $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>"; @@ -64,7 +64,7 @@ require('./header.php'); echo "<div class='col-lg-12'>"; $id = (int) $_GET['delete']; try { - $assignment = new assignment($_pdo, $id); + $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>"; } else { |