[pLog-svn] r3393 - plugins/trunk/mailcentre
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Thu May 11 21:58:44 GMT 2006
Author: oscar
Date: 2006-05-11 21:58:44 +0000 (Thu, 11 May 2006)
New Revision: 3393
Modified:
plugins/trunk/mailcentre/pluginmailcentre.class.php
Log:
moved table creation code that only needs to be run once to the PluginBase::init() method and added a missing include. Plugin working again in LT 1.1
Modified: plugins/trunk/mailcentre/pluginmailcentre.class.php
===================================================================
--- plugins/trunk/mailcentre/pluginmailcentre.class.php 2006-05-11 21:53:16 UTC (rev 3392)
+++ plugins/trunk/mailcentre/pluginmailcentre.class.php 2006-05-11 21:58:44 UTC (rev 3393)
@@ -26,17 +26,26 @@
$this->registerAdminAction( "mailcentreUserSelector", "MailCentreUserSelectorAction" );
$this->registerAdminAction( "mailcentreShowMessage", "MailCentreViewSentMail" );
$this->registerAdminAction( "mailcentreDeleteMessage", "MailCentreDeleteSentMailAction" );
- $this->registerAdminAction( "mailcentreDeleteMessages", "MailCentreDeleteSentMailAction" );
-
- // and check if the database tables are there
- $this->_checkTables();
+ $this->registerAdminAction( "mailcentreDeleteMessages", "MailCentreDeleteSentMailAction" );
+ }
+
+ /**
+ * @see PluginBase::init()
+ *
+ */
+ function init()
+ {
+ // check if the database tables are there
+ $this->_checkTables();
}
/**
* @private
*/
function _checkTables()
- {
+ {
+ include_once( PLOG_CLASS_PATH."class/database/db.class.php" );
+
// create the table to keep track of the voters, so that people cannot vote
// more than once
$fields = "
More information about the pLog-svn
mailing list