Commit 8b78e01d authored by hannes's avatar hannes

$longurl->url is just the same $canon we fed to File_redirection::where()

parent 64f2f3d9
......@@ -980,7 +980,7 @@ function common_linkify($url) {
} else {
$canon = File_redirection::_canonUrl($url);
$longurl_data = File_redirection::where($canon, common_config('attachments', 'process_links'));
$longurl = $longurl_data->url;
$longurl = $longurl_data->redir_url;
}
$attrs = array('href' => $canon, 'title' => $longurl);
......@@ -2430,4 +2430,4 @@ function html_sprintf()
$args[$i] = htmlspecialchars($args[$i]);
}
return call_user_func_array('sprintf', $args);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment