summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
Diffstat (limited to 'static')
-rwxr-xr-xstatic/classes/Response.class.php4
-rw-r--r--static/classes/UploadedFile.class.php1
-rw-r--r--static/upload.php2
3 files changed, 3 insertions, 4 deletions
diff --git a/static/classes/Response.class.php b/static/classes/Response.class.php
index 9d0c80e..3afcfdb 100755
--- a/static/classes/Response.class.php
+++ b/static/classes/Response.class.php
@@ -130,7 +130,7 @@ class Response
return POMF_URL.$files[0]['url'];
}
- private static function txt_error($code, $description)
+ private static function text_error($code, $description)
{
return 'ERROR: ('.$code.') '.$description;
}
@@ -146,7 +146,7 @@ class Response
private static function html_error($code, $description)
{
- return 'ERROR: ('.$code.') '.$description;
+ return '<p>ERROR: ('.$code.') '.$description.'</p>';
}
private static function html_success($files)
diff --git a/static/classes/UploadedFile.class.php b/static/classes/UploadedFile.class.php
index 74ed5c9..ac39646 100644
--- a/static/classes/UploadedFile.class.php
+++ b/static/classes/UploadedFile.class.php
@@ -33,7 +33,6 @@ class UploadedFile
/* Cached checksums */
private $sha1;
- private $crc32;
/**
* Generates the SHA1 or returns the cached SHA1 hash for the file.
diff --git a/static/upload.php b/static/upload.php
index 3d90a4f..655dd9c 100644
--- a/static/upload.php
+++ b/static/upload.php
@@ -64,7 +64,7 @@ function generate_name($file)
do {
// Iterate until we reach the maximum number of retries
- if ($tries-- == 0) {
+ if ($tries-- === 0) {
throw new Exception('Gave up trying to find an unused name', 500);
}