[pLog-svn] r2002 - in plog/branches/plog-1.0.1/class: action dao

jondaley at devel.plogworld.net jondaley at devel.plogworld.net
Fri May 13 04:21:59 GMT 2005


Author: jondaley
Date: 2005-05-13 04:21:58 +0000 (Fri, 13 May 2005)
New Revision: 2002

Modified:
   plog/branches/plog-1.0.1/class/action/viewarticleaction.class.php
   plog/branches/plog-1.0.1/class/dao/articles.class.php
Log:
just comments

Modified: plog/branches/plog-1.0.1/class/action/viewarticleaction.class.php
===================================================================
--- plog/branches/plog-1.0.1/class/action/viewarticleaction.class.php	2005-05-13 04:17:43 UTC (rev 2001)
+++ plog/branches/plog-1.0.1/class/action/viewarticleaction.class.php	2005-05-13 04:21:58 UTC (rev 2002)
@@ -80,6 +80,8 @@
 		 */
 		function _updateArticleReferrersByTitle($slug){
 			$id = $this->articles->getArticleIdFromName($slug);
+			// if the article isn't found, we will save a referrer to
+		    // the main page, since $id will be 0.
 			$this->_updateArticleReferrersById($id);
 		}
 		

Modified: plog/branches/plog-1.0.1/class/dao/articles.class.php
===================================================================
--- plog/branches/plog-1.0.1/class/dao/articles.class.php	2005-05-13 04:17:43 UTC (rev 2001)
+++ plog/branches/plog-1.0.1/class/dao/articles.class.php	2005-05-13 04:21:58 UTC (rev 2002)
@@ -436,7 +436,6 @@
 		 * @return articleId or 0 if unsuccessful
 		 */
         function getArticleIdFromName($articleName){
-            // we have to build up the query, which will be pretty long...
             $query = "SELECT id FROM ".$this->getPrefix()."articles ".
                      " WHERE slug = '".Db::qstr($articleName)."'";
 




More information about the pLog-svn mailing list