[pLog-svn] r3390 - plugins/trunk/articlereferers
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Thu May 11 21:45:36 GMT 2006
Author: oscar
Date: 2006-05-11 21:45:36 +0000 (Thu, 11 May 2006)
New Revision: 3390
Modified:
plugins/trunk/articlereferers/pluginarticlereferers.class.php
Log:
plugin ported to 1.1
Modified: plugins/trunk/articlereferers/pluginarticlereferers.class.php
===================================================================
--- plugins/trunk/articlereferers/pluginarticlereferers.class.php 2006-05-11 21:45:09 UTC (rev 3389)
+++ plugins/trunk/articlereferers/pluginarticlereferers.class.php 2006-05-11 21:45:36 UTC (rev 3390)
@@ -20,10 +20,8 @@
$this->id = "articlereferers";
$this->author = "Mark Wu";
- $this->desc = "This plugin offers you to get the referers of the specific article.";
-
- $this->prefix = Db::getPrefix();
-
+ $this->desc = "This plugin offers you to get the referers of the specific article.";
+
$this->locales = Array( "en_UK" , "zh_TW" , "zh_CN" );
$this->init();
@@ -60,7 +58,9 @@
{
$referers = new Referers();
$blogId = $this->blogInfo->getId();
-
+
+ include_once( PLOG_CLASS_PATH."class/database/db.class.php" );
+ $this->prefix = Db::getPrefix();
$query = "SELECT * FROM ".$this->prefix."referers WHERE article_id = ".$articleId;
if( $this->sortByField != "" && $this->sortByField != $sortByField )
@@ -82,13 +82,13 @@
$query .= " LIMIT ".$this->maxReferers.";";
}
- $result = $referers->_db->Execute( $query );
+ $result = $referers->Execute( $query );
if( !$result )
return false;
$articlereferers = Array();
while( $row = $result->FetchRow()) {
- array_push( $articlereferers, $referers->_fillRefererInformation( $row ));
+ array_push( $articlereferers, $referers->mapRow( $row ));
}
return $articlereferers;
More information about the pLog-svn
mailing list