Skip to content

Commit

Permalink
MDL-14589 improved param name
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jul 11, 2010
1 parent f28ee49 commit 37416d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/weblib.php
Original file line number Diff line number Diff line change
Expand Up @@ -695,18 +695,18 @@ public static function make_pluginfile_url($contextid, $component, $area, $itemi
/**
* Factory method for creation of url pointing to draft
* file of current user.
* @param int $itemid draft item id
* @param int $draftid draft item id
* @param string $pathname
* @param string $filename
* @param bool $forcedownload
* @return moodle_url
*/
public static function make_draftfile_url($itemid, $pathname, $filename, $forcedownload = false) {
public static function make_draftfile_url($draftid, $pathname, $filename, $forcedownload = false) {
global $CFG, $USER;
$urlbase = "$CFG->httpswwwroot/draftfile.php";
$context = get_context_instance(CONTEXT_USER, $USER->id);

return self::make_file_url($urlbase, "/$context->id/user/draft/$itemid".$pathname.$filename, $forcedownload);
return self::make_file_url($urlbase, "/$context->id/user/draft/$draftid".$pathname.$filename, $forcedownload);
}

/**
Expand Down

0 comments on commit 37416d5

Please sign in to comment.