Skip to content
Snippets Groups Projects
Commit 6c5471e9 authored by Alexander Hass's avatar Alexander Hass
Browse files

linkchecker_extract_from_audio variable has incorrect default.

parent cf27c4e6
No related branches found
No related tags found
No related merge requests found
...@@ -1934,7 +1934,7 @@ function _linkchecker_extract_links($text = '', $content_path = NULL) { ...@@ -1934,7 +1934,7 @@ function _linkchecker_extract_links($text = '', $content_path = NULL) {
} }
// Finds all audio links in the content. // Finds all audio links in the content.
if (variable_get('linkchecker_extract_from_audio', 1) == 1) { if (variable_get('linkchecker_extract_from_audio', 0) == 1) {
$audios = $html_dom->getElementsByTagName('audio'); $audios = $html_dom->getElementsByTagName('audio');
foreach ($audios as $audio) { foreach ($audios as $audio) {
$urls[] = $audio->getAttribute('src'); $urls[] = $audio->getAttribute('src');
...@@ -2188,7 +2188,7 @@ function _linkchecker_link_replace(&$text, $old_link_fqdn = '', $new_link_fqdn = ...@@ -2188,7 +2188,7 @@ function _linkchecker_link_replace(&$text, $old_link_fqdn = '', $new_link_fqdn =
} }
// Finds all audio links in the content. // Finds all audio links in the content.
if (variable_get('linkchecker_extract_from_audio', 1) == 1) { if (variable_get('linkchecker_extract_from_audio', 0) == 1) {
$audios = $html_dom->getElementsByTagName('audio'); $audios = $html_dom->getElementsByTagName('audio');
foreach ($audios as $audio) { foreach ($audios as $audio) {
if (in_array($audio->getAttribute('src'), $old_links)) { if (in_array($audio->getAttribute('src'), $old_links)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment