aboutsummaryrefslogtreecommitdiff
path: root/pages/feedback.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/feedback.php')
-rw-r--r--pages/feedback.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/pages/feedback.php b/pages/feedback.php
index 4c214ce..8b87b01 100644
--- a/pages/feedback.php
+++ b/pages/feedback.php
@@ -1,5 +1,7 @@
<?php
+require_once('lib/bootstrap.php');
+
if(
!isset($_POST['datetime']) ||
!isset($_POST['net']) ||
@@ -9,8 +11,6 @@ if(
!isset($_POST['provider']) ||
!isset($_POST['issuetext'])
) {
- require_once('lib/bootstrap.php');
-
echo $tpl->render(array(
'page' => 'feedback',
'title' => 'Give Feedback',
@@ -19,7 +19,7 @@ if(
}
else
{
- $db = new PDO('sqlite:/opt/31c3-streaming-feedback/feedback.sqlite3');
+ $db = new PDO(get('FEEDBACK.DSN'));
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$stm = $db->prepare('