more sanity checks

This commit is contained in:
Shish
2010-02-01 23:30:07 +00:00
parent acadaa29ec
commit 4df08e9477
2 changed files with 4 additions and 2 deletions

View File

@@ -16,7 +16,9 @@
class DataUploadEvent extends Event {
var $user, $tmpname, $metadata, $hash, $type, $image_id = -1;
public function DataUploadEvent($user, $tmpname, $metadata) {
public function DataUploadEvent(User $user, $tmpname, $metadata) {
assert(file_exists($tmpname));
$this->user = $user;
$this->tmpname = $tmpname;