diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-11-11 13:00:21 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-11-11 13:00:21 +0000 |
| commit | aa812f5b630554bd154d2c125c5e15ee6bd549bc (patch) | |
| tree | 0edcb8cf0553c5bf55513f5c95c5ed3bc9695039 | |
| parent | b92deb93cf1b425d3b0da113dce719ff3e7af839 (diff) | |
Fixed URLs when no referrers found
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@431 7be80a69-a1ef-0310-a953-fb0f7c49ff36
| -rw-r--r-- | wp-inst/wp-content/mu-plugins/doc_referers.php | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/wp-inst/wp-content/mu-plugins/doc_referers.php b/wp-inst/wp-content/mu-plugins/doc_referers.php index 304879e..b54bf79 100644 --- a/wp-inst/wp-content/mu-plugins/doc_referers.php +++ b/wp-inst/wp-content/mu-plugins/doc_referers.php @@ -201,9 +201,7 @@ class DOC_Referers { } elseif( $action == 'deletedirect' ) { - $query = "DELETE FROM " . $wpdb->doc_referers . " - WHERE dayofmonth='".$day."' - AND referingURL = 'DIRECT'"; + $query = "DELETE FROM " . $wpdb->doc_referers . " WHERE dayofmonth='".$day."' AND referingURL = 'DIRECT'"; $result = $wpdb->query($query); printf ("Records deleted: %d\n", $wpdb->rows_affected); $action = "listday"; @@ -215,9 +213,7 @@ class DOC_Referers { reset( $del ); while( list( $key, $val ) = each( $del ) ) { - $query = "SELECT referingURL - FROM " . $wpdb->doc_referers . " - WHERE visitID = '".$val."'"; + $query = "SELECT referingURL FROM " . $wpdb->doc_referers . " WHERE visitID = '".$val."'"; $result=$wpdb->get_var( $query ); if( $result ) { @@ -483,9 +479,9 @@ class DOC_Referers { print "<p>No Referers found today!</p>"; print "<ul><li><a href='edit.php?page=mu-plugins/doc_referers.php&action=month'>Month View</a> displays the last month of stats.</li>"; if( $ignoreDIRECT == 'yes' ) - print "<li><a href='".$this->makeURL( "ignoreDIRECT", 'no' )."'>Display DIRECT hits</a> - some browsers don't report what page they come from. You're hiding this information right now.</li>"; + print "<li><a href='edit.php?page=mu-plugins/doc_referers.php".$this->makeURL( "ignoreDIRECT", 'no' )."'>Display DIRECT hits</a> - some browsers don't report what page they come from. You're hiding this information right now.</li>"; if( $internal == 'yes' ) - print "<li><a href='".$this->makeURL( "internal", 'no' )."'>Display internal hits</a> - it's not always very interesting where people wander around your blog. You're hiding this information right now.</li>"; + print "<li><a href='edit.php?page=mu-plugins/doc_referers.php".$this->makeURL( "internal", 'no' )."'>Display internal hits</a> - it's not always very interesting where people wander around your blog. You're hiding this information right now.</li>"; print "</ul>"; } break; |
