diff options
| author | Austin Gillmann <alucard@cuntflaps.me> | 2016-05-23 03:03:38 +0200 |
|---|---|---|
| committer | Juuso Lapinlampi <wub@partyvan.eu> | 2016-05-23 03:50:27 +0200 |
| commit | 349087a478704257ec86561dc774c358ab760c64 (patch) | |
| tree | df37b6b6ffda560fce83e413658985c74f0c164e /static/includes | |
| parent | d766208c82c337b5f9773374fcb39bfb9e8d059a (diff) | |
Replace include_once statements with require_once
Normally in include_once if a script does not load PHP will treat it as
such as an E_WARNING, while require_once fail the script with a
E_COMPILE_ERROR if the script does not load.
Since we require all of these scripts to properly function it
will be better to classify them as required in PHP.
Reported-by: Juuso Lapinlampi <wub@partyvan.eu>
Reviewed-by: Juuso Lapinlampi <wub@partyvan.eu>
Diffstat (limited to 'static/includes')
| -rw-r--r-- | static/includes/database.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/static/includes/database.inc.php b/static/includes/database.inc.php index 0374afa..ff04561 100644 --- a/static/includes/database.inc.php +++ b/static/includes/database.inc.php @@ -22,7 +22,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); |
