diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-09-27 20:51:26 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-09-27 20:51:26 +0000 |
commit | 4a0e498f52106b29d4adae0aaf7e1a6d55f8fd68 (patch) | |
tree | c3611570a31af3bce1042d62affa6a38c8678292 /modules/story.module | |
parent | 6cde632962a461d2dc2acef0917b592823e123f8 (diff) | |
download | brdo-4a0e498f52106b29d4adae0aaf7e1a6d55f8fd68.tar.gz brdo-4a0e498f52106b29d4adae0aaf7e1a6d55f8fd68.tar.bz2 |
- a batch of updates, including some experimental changes to the moderation
of comments and nodes.
Diffstat (limited to 'modules/story.module')
-rw-r--r-- | modules/story.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/story.module b/modules/story.module index 4fbd630fa..8a7497a65 100644 --- a/modules/story.module +++ b/modules/story.module @@ -16,7 +16,7 @@ function story_search($keys) { global $PHP_SELF, $status; $result = db_query("SELECT n.*, s.* FROM story s LEFT JOIN node n ON n.nid = s.nid AND n.lid = s.lid WHERE n.status = '$status[posted]' AND (n.title LIKE '%$keys%' OR s.abstract LIKE '%$keys%' OR s.body LIKE '%$keys%') ORDER BY n.timestamp DESC LIMIT 20"); while ($story = db_fetch_object($result)) { - $find[$i++] = array("title" => check_output($story->title), "link" => ($PHP_SELF == "/admin.php" ? "admin.php?mod=node&type=story&op=edit&id=$story->nid" : "node.php?id=$story->nid"), "user" => $story->name, "date" => $story->timestamp); + $find[$i++] = array("title" => check_output($story->title), "link" => (strstr($PHP_SELF, "admin.php") ? "admin.php?mod=node&type=story&op=edit&id=$story->nid" : "node.php?id=$story->nid"), "user" => $story->name, "date" => $story->timestamp); } return $find; } |