summaryrefslogtreecommitdiff
path: root/static/upload.php
diff options
context:
space:
mode:
authorAustin Gillmann <alucard@cuntflaps.me>2016-05-23 03:03:38 +0200
committerJuuso Lapinlampi <wub@partyvan.eu>2016-05-23 03:50:27 +0200
commit349087a478704257ec86561dc774c358ab760c64 (patch)
treedf37b6b6ffda560fce83e413658985c74f0c164e /static/upload.php
parentd766208c82c337b5f9773374fcb39bfb9e8d059a (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/upload.php')
-rw-r--r--static/upload.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/static/upload.php b/static/upload.php
index c296d24..4bee979 100644
--- a/static/upload.php
+++ b/static/upload.php
@@ -32,10 +32,10 @@ if (ini_get('zlib.output_compression') !== 'Off'
ob_start('ob_gzhandler');
}
-include_once 'classes/Response.class.php';
-include_once 'classes/UploadException.class.php';
-include_once 'classes/UploadedFile.class.php';
-include_once 'includes/database.inc.php';
+require_once 'classes/Response.class.php';
+require_once 'classes/UploadException.class.php';
+require_once 'classes/UploadedFile.class.php';
+require_once 'includes/database.inc.php';
/**
* Generates a random name for the file, retrying until we get an unused one.