[pLog-svn] r2347 - plog/trunk/class/action
pwestbro at devel.plogworld.net
pwestbro at devel.plogworld.net
Tue Jul 19 04:57:48 GMT 2005
Author: pwestbro
Date: 2005-07-19 04:57:46 +0000 (Tue, 19 Jul 2005)
New Revision: 2347
Modified:
plog/trunk/class/action/viewarticleaction.class.php
Log:
Fixed http://bugs.plogworld.net/view.php?id=651
It looks like the getArticleIdFromName function was removed. I changed the
call to getBlogArticleByTitle. If the removal of getArticleIdFromName was
not intended, this call can be changed back.
Modified: plog/trunk/class/action/viewarticleaction.class.php
===================================================================
--- plog/trunk/class/action/viewarticleaction.class.php 2005-07-18 20:51:42 UTC (rev 2346)
+++ plog/trunk/class/action/viewarticleaction.class.php 2005-07-19 04:57:46 UTC (rev 2347)
@@ -78,7 +78,12 @@
* updates the article referrers, given a slug
*/
function _updateArticleReferrersByTitle($slug){
- $id = $this->articles->getArticleIdFromName($slug);
+ $id = 0;
+ $article = $this->articles->getBlogArticleByTitle($slug);
+ if ( $article )
+ {
+ $id = $article->getId();
+ }
// if the article isn't found, we will save a referrer to
// the main page, since $id will be 0.
$this->_updateArticleReferrersById($id);
More information about the pLog-svn
mailing list