Skip to content

Commit

Permalink
"MDL-20843, added missing in upload plugin"
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongsheng Cai committed Nov 16, 2009
1 parent 7231e2d commit f3b3803
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions repository/upload/repository.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,19 @@ public function __construct($repositoryid, $context = SITEID, $options = array()
}

/**
* Print a upload form
*
* @param boolean $ajax
* @return mixed
* @return array
*/
public function print_login($ajax = true) {
public function print_login() {
return $this->get_listing();
}

/**
* Process uploaded file
*
* @return array
*/
public function upload() {
try {
$this->info = $this->upload_to_filepool('repo_upload_file', 'user_draft', $this->filepath, $this->itemid);
Expand All @@ -39,6 +44,7 @@ public function upload() {
}

public function get_listing() {
global $CFG;
$ret = array();
$ret['nologin'] = true;
$ret['nosearch'] = true;
Expand Down

0 comments on commit f3b3803

Please sign in to comment.