Skip to content

Commit

Permalink
MDL-31901 fixed the name of user draft file serving handler
Browse files Browse the repository at this point in the history
Files stored in user context, draft are must be served by draftfile.php,
not the pluginfile.php.
  • Loading branch information
mudrd8mz authored and marinaglancy committed May 21, 2012
1 parent dfad252 commit 97b603c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/filebrowser/file_info_context_user.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ protected function get_area_user_draft($itemid, $filepath, $filename) {
return null;
}
}
$urlbase = $CFG->wwwroot.'/pluginfile.php';
$urlbase = $CFG->wwwroot.'/draftfile.php';
return new file_info_stored($this->browser, $this->context, $storedfile, $urlbase, get_string('areauserdraft', 'repository'), true, true, true, true);
}

Expand Down

0 comments on commit 97b603c

Please sign in to comment.