summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-11-18 22:47:23 +0000
committerDries Buytaert <dries@buytaert.net>2001-11-18 22:47:23 +0000
commitccbbddbc9577bde85bfa4d265cda4716a52ce8d0 (patch)
tree673bed5ceef1048d8e9c1966734786b0b08a323c
parentac775ebc27de1c1c73b1ea03aa69811091766791 (diff)
downloadbrdo-ccbbddbc9577bde85bfa4d265cda4716a52ce8d0.tar.gz
brdo-ccbbddbc9577bde85bfa4d265cda4716a52ce8d0.tar.bz2
- Removed the limit on the blog searches (patch by Natrak). For now it
fixes some annoying issueus but this will need more work in future as it doesn't really scale too well.
-rw-r--r--modules/blog.module2
-rw-r--r--modules/blog/blog.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/blog.module b/modules/blog.module
index 3d94152bc..408a35d87 100644
--- a/modules/blog.module
+++ b/modules/blog.module
@@ -144,7 +144,7 @@ function blog_page_user($uid = 0, $date = 0) {
$date = time();
}
- $result = db_query("SELECT nid FROM node WHERE type = 'blog' AND uid = '$account->uid' AND created <= '$date' AND created >= '". ($date - 2592000) ."' ORDER BY nid DESC");
+ $result = db_query("SELECT nid FROM node WHERE type = 'blog' AND uid = '$account->uid' AND created <= '$date' ORDER BY nid DESC");
$output .= "<table border=\"0\" cellpadding=\"4\" cellspacing=\"4\">";
diff --git a/modules/blog/blog.module b/modules/blog/blog.module
index 3d94152bc..408a35d87 100644
--- a/modules/blog/blog.module
+++ b/modules/blog/blog.module
@@ -144,7 +144,7 @@ function blog_page_user($uid = 0, $date = 0) {
$date = time();
}
- $result = db_query("SELECT nid FROM node WHERE type = 'blog' AND uid = '$account->uid' AND created <= '$date' AND created >= '". ($date - 2592000) ."' ORDER BY nid DESC");
+ $result = db_query("SELECT nid FROM node WHERE type = 'blog' AND uid = '$account->uid' AND created <= '$date' ORDER BY nid DESC");
$output .= "<table border=\"0\" cellpadding=\"4\" cellspacing=\"4\">";