Bad variable name in File_redirection

This commit is contained in:
Mikael Nordfeldth 2015-10-13 22:57:45 +02:00
parent e379c49d49
commit 4b69ef41e2
1 changed files with 1 additions and 1 deletions

View File

@ -336,7 +336,7 @@ class File_redirection extends Managed_DataObject
static function saveNew($data, $file_id, $url) {
$file_redir = new File_redirection;
$file_redir->urlhash = File::hashurl($short_url);
$file_redir->urlhash = File::hashurl($url);
$file_redir->url = $url;
$file_redir->file_id = $file_id;
$file_redir->redirections = intval($data['redirects']);