[geeklog-cvs] geeklog-1.3/public_html comment.php,1.54.2.2,1.54.2.3
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Thu Oct 7 15:44:17 EDT 2004
Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv17668/public_html
Modified Files:
Tag: geeklog_1_3_9_1
comment.php
Log Message:
Don't use $topic in the language files (use %s instead).
Index: comment.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/comment.php,v
retrieving revision 1.54.2.2
retrieving revision 1.54.2.3
diff -C2 -d -r1.54.2.2 -r1.54.2.3
*** comment.php 31 May 2004 10:51:17 -0000 1.54.2.2
--- comment.php 7 Oct 2004 19:44:15 -0000 1.54.2.3
***************
*** 268,271 ****
--- 268,283 ----
}
+ $commentcode = 0;
+ if ($type == 'article') {
+ $commentcode = DB_getItem ($_TABLES['stories'], 'commentcode',
+ "sid = '$sid'");
+ } else if ($type == 'poll') {
+ $commentcode = DB_getItem ($_TABLES['pollquestions'], 'commentcode',
+ "qid = '$sid'");
+ }
+ if ($commentcode < 0) {
+ return COM_refresh ($_CONF['site_url'] . '/index.php');
+ }
+
// Clean 'em up a bit!
if ($postmode == 'html') {
More information about the geeklog-cvs
mailing list