Commit 77147ee1 authored by pifagor's avatar pifagor
Browse files

Fixed test.

parent 6f1bf54a
......@@ -1374,10 +1374,6 @@ function link_validate_url($text, $langcode = NULL) {
$normal_path = $parsed_link;
}
$flag = drupal_valid_path($normal_path);
if (!$flag) {
$lookup_path = drupal_lookup_path('source', $text);
$flag = isset($lookup_path) ? TRUE : FALSE;
}
}
if (!$flag) {
$flag = file_exists($normal_path);
......
Supports Markdown
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