Indentation
This commit is contained in:
parent
49afb2b9ea
commit
7d2b6e53b3
38
owark.php
38
owark.php
|
@ -432,13 +432,13 @@ if (!class_exists("Owark")) {
|
||||||
$q = "
|
$q = "
|
||||||
SELECT owark.id
|
SELECT owark.id
|
||||||
FROM {$wpdb->prefix}blc_instances AS instances,
|
FROM {$wpdb->prefix}blc_instances AS instances,
|
||||||
{$wpdb->prefix}blc_links AS links,
|
{$wpdb->prefix}blc_links AS links,
|
||||||
{$wpdb->prefix}owark AS owark
|
{$wpdb->prefix}owark AS owark
|
||||||
WHERE
|
WHERE
|
||||||
instances.link_id = links.link_id
|
instances.link_id = links.link_id
|
||||||
AND owark.url = %s
|
AND owark.url = %s
|
||||||
AND owark.url = instances.raw_url
|
AND owark.url = instances.raw_url
|
||||||
AND links.broken = 1
|
AND links.broken = 1
|
||||||
";
|
";
|
||||||
print_r_log($q);
|
print_r_log($q);
|
||||||
$q = $wpdb->prepare($q, $url);
|
$q = $wpdb->prepare($q, $url);
|
||||||
|
@ -473,14 +473,14 @@ if (!class_exists("Owark")) {
|
||||||
$q = "
|
$q = "
|
||||||
SELECT instances.raw_url, owark.id
|
SELECT instances.raw_url, owark.id
|
||||||
FROM {$wpdb->prefix}blc_instances AS instances,
|
FROM {$wpdb->prefix}blc_instances AS instances,
|
||||||
{$wpdb->prefix}blc_links AS links,
|
{$wpdb->prefix}blc_links AS links,
|
||||||
{$wpdb->prefix}owark AS owark
|
{$wpdb->prefix}owark AS owark
|
||||||
WHERE
|
WHERE
|
||||||
instances.link_id = links.link_id
|
instances.link_id = links.link_id
|
||||||
AND owark.url = instances.raw_url
|
AND owark.url = instances.raw_url
|
||||||
AND instances.container_id = %s
|
AND instances.container_id = %s
|
||||||
AND instances.container_type = %s
|
AND instances.container_type = %s
|
||||||
AND links.broken = 1
|
AND links.broken = 1
|
||||||
";
|
";
|
||||||
print_r_log($q);
|
print_r_log($q);
|
||||||
$q = $wpdb->prepare($q, $this->post_id, $this->post_type);
|
$q = $wpdb->prepare($q, $this->post_id, $this->post_type);
|
||||||
|
@ -649,12 +649,12 @@ if (!class_exists("Owark")) {
|
||||||
|
|
||||||
$query = "
|
$query = "
|
||||||
SELECT DISTINCT instances.raw_url as url
|
SELECT DISTINCT instances.raw_url as url
|
||||||
from {$wpdb->prefix}blc_links as links,
|
from {$wpdb->prefix}blc_links as links,
|
||||||
{$wpdb->prefix}blc_instances AS instances
|
{$wpdb->prefix}blc_instances AS instances
|
||||||
WHERE url NOT IN (SELECT url FROM {$wpdb->prefix}owark)
|
WHERE url NOT IN (SELECT url FROM {$wpdb->prefix}owark)
|
||||||
AND broken=0
|
AND broken=0
|
||||||
AND last_check is not null
|
AND last_check is not null
|
||||||
AND instances.link_id = links.link_id";
|
AND instances.link_id = links.link_id";
|
||||||
print_r_log("query: $query");
|
print_r_log("query: $query");
|
||||||
|
|
||||||
$url = $wpdb->get_row($query);
|
$url = $wpdb->get_row($query);
|
||||||
|
|
Loading…
Reference in New Issue