function _get_current_file_display($current) { if (!$current) { // force an (empty) current file display to be shown $current = new stdClass(); $current->path = false; } return parent::_get_current_file_display($current); }
function grab() { $result = parent::grab(); if ($this->state == "received") { $this->state = "uploaded"; } // old, confusing name return $result; }