[pLog-svn] r3560 - in plugins/trunk/karma: . class/action
class/karma
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Thu Jun 8 19:08:56 GMT 2006
Author: oscar
Date: 2006-06-08 19:08:56 +0000 (Thu, 08 Jun 2006)
New Revision: 3560
Modified:
plugins/trunk/karma/class/action/adminkarmapluginupdatesettingsaction.class.php
plugins/trunk/karma/class/action/karmarateaction.class.php
plugins/trunk/karma/class/action/viewmoderateddownarticleaction.class.php
plugins/trunk/karma/class/karma/karmalib.class.php
plugins/trunk/karma/pluginkarma.class.php
Log:
'karma' plugin updated to work with 1.1
Modified: plugins/trunk/karma/class/action/adminkarmapluginupdatesettingsaction.class.php
===================================================================
--- plugins/trunk/karma/class/action/adminkarmapluginupdatesettingsaction.class.php 2006-06-08 18:31:30 UTC (rev 3559)
+++ plugins/trunk/karma/class/action/adminkarmapluginupdatesettingsaction.class.php 2006-06-08 19:08:56 UTC (rev 3560)
@@ -144,7 +144,7 @@
$blogs = new Blogs();
// update the settings in the db, and make sure that everything went fine
- if( !$blogs->updateBlogs( $this->_blogInfo )) {
+ if( !$blogs->updateBlog( $this->_blogInfo )) {
$this->_view = new AdminKarmaPluginSettingsView( $this->_blogInfo );
$this->_view->setErrorMessage( $this->_locale->tr("error_updating_settings"));
$this->setCommonData();
Modified: plugins/trunk/karma/class/action/karmarateaction.class.php
===================================================================
--- plugins/trunk/karma/class/action/karmarateaction.class.php 2006-06-08 18:31:30 UTC (rev 3559)
+++ plugins/trunk/karma/class/action/karmarateaction.class.php 2006-06-08 19:08:56 UTC (rev 3560)
@@ -5,6 +5,7 @@
include_once( PLOG_CLASS_PATH."plugins/karma/class/karma/karmalib.class.php" );
include_once( PLOG_CLASS_PATH."class/view/errorview.class.php" );
include_once( PLOG_CLASS_PATH."class/net/client.class.php" );
+ include_once( PLOG_CLASS_PATH."class/template/cachecontrol.class.php" );
class KarmaRateAction extends BlogAction
{
@@ -47,7 +48,7 @@
return false;
}
-
+
$val3 = new IntegerValidator();
if( !$val3->validate( $this->_mode )) {
$this->_view = new ErrorView( $this->_blogInfo );
Modified: plugins/trunk/karma/class/action/viewmoderateddownarticleaction.class.php
===================================================================
--- plugins/trunk/karma/class/action/viewmoderateddownarticleaction.class.php 2006-06-08 18:31:30 UTC (rev 3559)
+++ plugins/trunk/karma/class/action/viewmoderateddownarticleaction.class.php 2006-06-08 19:08:56 UTC (rev 3560)
@@ -5,6 +5,7 @@
include_once( PLOG_CLASS_PATH."class/dao/blogs.class.php" );
include_once( PLOG_CLASS_PATH."class/view/errorview.class.php" );
include_once( PLOG_CLASS_PATH."class/plugin/pluginmanager.class.php" );
+ include_once( PLOG_CLASS_PATH."class/dao/articles.class.php" );
/**
* Allows users to browse moderated down articles, otherwise they cannot
Modified: plugins/trunk/karma/class/karma/karmalib.class.php
===================================================================
--- plugins/trunk/karma/class/karma/karmalib.class.php 2006-06-08 18:31:30 UTC (rev 3559)
+++ plugins/trunk/karma/class/karma/karmalib.class.php 2006-06-08 19:08:56 UTC (rev 3560)
@@ -70,7 +70,7 @@
{
// load the post
$articles = new Articles();
- $article = $articles->getBlogArticle( $articleId, $blogId );
+ $article = $articles->getBlogArticle( $articleId, $blogId );
// check if the fields exist
if( $mode == 1 ) {
@@ -155,6 +155,7 @@
$tableName = $dbPrefix.$tableName;
// create the data dictionary and create the table if necessary
+ $this->_initializeDb();
$dict = NewDataDictionary( $this->_db );
$sqlArray = $dict->ChangeTableSQL( $tableName, $tableSchema );
$result = $dict->ExecuteSQLArray( $sqlArray );
Modified: plugins/trunk/karma/pluginkarma.class.php
===================================================================
--- plugins/trunk/karma/pluginkarma.class.php 2006-06-08 18:31:30 UTC (rev 3559)
+++ plugins/trunk/karma/pluginkarma.class.php 2006-06-08 19:08:56 UTC (rev 3560)
@@ -21,7 +21,7 @@
$this->id = "karma";
$this->desc = "Implements karma rating for posts";
- $this->author = "The pLog Team";
+ $this->author = "The LifeType Team";
$this->locales = Array();
$this->init();
More information about the pLog-svn
mailing list