Commit be58fd64 authored by mmn's avatar mmn

Use index for File url (urlhash)

parent 65055044
......@@ -997,9 +997,9 @@ function common_linkify($url) {
// Check to see whether this is a known "attachment" URL.
$f = File::getKV('url', $longurl);
if (!$f instanceof File) {
try {
$f = File::getByUrl($longurl);
} catch (NoResultException $e) {
if (common_config('attachments', 'process_links')) {
// XXX: this writes to the database. :<
try {
......@@ -2436,4 +2436,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