aboutsummaryrefslogtreecommitdiff
path: root/include/discounts.php
diff options
context:
space:
mode:
authorCamil Staps2016-07-27 16:48:53 +0200
committerCamil Staps2016-07-27 17:08:12 +0200
commit21455bfd1004c4a3153050ac5995b8dc680c2042 (patch)
treeb448f9d94cd9b6addb6d6b391001c418243cc13d /include/discounts.php
parentRemoved error reporting (diff)
Class names start with a capital
Diffstat (limited to 'include/discounts.php')
-rw-r--r--include/discounts.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/discounts.php b/include/discounts.php
index ff2a69a..a4d9df6 100644
--- a/include/discounts.php
+++ b/include/discounts.php
@@ -45,8 +45,8 @@ require('./header.php');
if (isset($_GET['id'])) {
$id = (int) $_GET['id'];
try {
- $discount = new discount($_pdo, $id);
- $header = "<a href='".constants::url_external."discounts'>Discounts</a> / {$discount->getTitle()}";
+ $discount = new Discount($_pdo, $id);
+ $header = "<a href='".Constants::url_external."discounts'>Discounts</a> / {$discount->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 discount 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 {
- $discount = new discount($_pdo, $id);
+ $discount = new Discount($_pdo, $id);
if ($discount->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 discount with title <i>{$discount->getTitle()}</i> has been removed.</div>";
} else {