Update of /cvsroot/php-blog/jBlog
In directory sc8-pr-cvs1:/tmp/cvs-serv2177
Modified Files:
jBlog_functions.inc.php
Log Message:
fix display of comments form on index page with only one entry
Index: jBlog_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/jBlog/jBlog_functions.inc.php,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -d -r1.71 -r1.72
--- jBlog_functions.inc.php 14 Mar 2003 05:26:20 -0000 1.71
+++ jBlog_functions.inc.php 14 Mar 2003 06:27:04 -0000 1.72
@@ -313,7 +313,7 @@
. date("H:i", $entry['timestamp'])
. "</a>";
- if ($num_entries != 1) {
+ if (!isset($jBlog['GET']['id'])) {
$label = $entry['comments'] == 1 ? "Comment" : "Comments";
echo " | <a href=\"{$jBlog['jBlogHTTPPath']}comment.php?jBlog[entry_id]={$entry['id']}\" "
. "onClick=\"window.open(this.href, 'comments', 'width=480,height=480,scrollbars=yes'); return false;\">"
@@ -336,7 +336,7 @@
echo "</rdf:RDF>\n";
echo "-->\n";
- if ($num_entries == 1) {
+ if (isset($jBlog['GET']['id'])) {
echo '<link rel="pingback" href="' . $jBlog['baseURL'] . "comment.php?type=pingback&entry_id={$entry['id']}\" />\n";
echo "\n<br />\n";
echo '<div class="jBlog_commentsTitle">Comments</div>';
|