diff options
Diffstat (limited to 'static/includes/database.inc.php')
| -rw-r--r-- | static/includes/database.inc.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/static/includes/database.inc.php b/static/includes/database.inc.php index 0374afa..7a1d4f9 100644 --- a/static/includes/database.inc.php +++ b/static/includes/database.inc.php @@ -1,7 +1,9 @@ <?php /** - * Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com> + * Prepares a PDO connection between Pomf and a database server. + * + * @copyright Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -22,7 +24,7 @@ * SOFTWARE. */ -include_once 'settings.inc.php'; +require_once 'settings.inc.php'; /* NOTE: we don't have to unref the PDO because we're not long-running */ $db = new PDO(POMF_DB_CONN, POMF_DB_USER, POMF_DB_PASS); |
