[pLog-svn] r2253 - plog/trunk/class/dao

oscar at devel.plogworld.net oscar at devel.plogworld.net
Mon Jun 20 07:20:15 GMT 2005


Author: oscar
Date: 2005-06-20 07:20:15 +0000 (Mon, 20 Jun 2005)
New Revision: 2253

Modified:
   plog/trunk/class/dao/articles.class.php
Log:
fixed Articles::updateArticle()


Modified: plog/trunk/class/dao/articles.class.php
===================================================================
--- plog/trunk/class/dao/articles.class.php	2005-06-20 04:56:14 UTC (rev 2252)
+++ plog/trunk/class/dao/articles.class.php	2005-06-20 07:20:15 UTC (rev 2253)
@@ -768,6 +768,7 @@
         function updateArticle( $article )
         {
             include_once( PLOG_CLASS_PATH.'class/data/timestamp.class.php' );
+            include_once( PLOG_CLASS_PATH.'class/database/db.class.php' );
 
             // we have to build up the query, which will be pretty long...
             $articleDate = Timestamp::getDateWithOffset( $article->getDate(), -($article->getTimeOffset()));
@@ -780,7 +781,7 @@
             $keyValuePairs['status']     = $article->getStatus();
             $keyValuePairs['num_reads']  = $article->getNumReads();
             $keyValuePairs['properties'] = serialize( $article->getProperties() );
-            $keyValuePairs['slug']       = $article->gePostSlug();
+            $keyValuePairs['slug']       = $article->getPostSlug();
             
             $query = Db::buildUpdateQuery( ARTICLES_TABLENAME,
                                            $keyValuePairs,




More information about the pLog-svn mailing list