[geeklog-cvs] geeklog-1.3/public_html article.php,1.54,1.55

dhaun at iowaoutdoors.org dhaun at iowaoutdoors.org
Sat Sep 25 14:50:10 EDT 2004


Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv14047

Modified Files:
	article.php 
Log Message:
Don't update the story hit counter as long as the draft flag is set or the story's publishing date is in the future (feature request #282).


Index: article.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/article.php,v
retrieving revision 1.54
retrieving revision 1.55
diff -C2 -d -r1.54 -r1.55
*** article.php	4 Sep 2004 19:31:02 -0000	1.54
--- article.php	25 Sep 2004 18:50:07 -0000	1.55
***************
*** 158,162 ****
              $display .= COM_siteHeader ('menu');
  
!             DB_query ("UPDATE {$_TABLES['stories']} SET hits = hits + 1 WHERE sid = '$story'");
  
              if (!empty ($query)) {
--- 158,162 ----
              $display .= COM_siteHeader ('menu');
  
!             DB_query ("UPDATE {$_TABLES['stories']} SET hits = hits + 1 WHERE (sid = '$story') AND (date <= NOW()) AND (draft_flag = 0)");
  
              if (!empty ($query)) {




More information about the geeklog-cvs mailing list