[pLog-svn] r3653 - plugins/trunk/mailcentre
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Sun Jun 25 19:29:04 GMT 2006
Author: oscar
Date: 2006-06-25 19:29:03 +0000 (Sun, 25 Jun 2006)
New Revision: 3653
Modified:
plugins/trunk/mailcentre/pluginmailcentre.class.php
Log:
typo... it's not PluginBase::init() but PluginBase::install()...
Modified: plugins/trunk/mailcentre/pluginmailcentre.class.php
===================================================================
--- plugins/trunk/mailcentre/pluginmailcentre.class.php 2006-06-25 19:27:48 UTC (rev 3652)
+++ plugins/trunk/mailcentre/pluginmailcentre.class.php 2006-06-25 19:29:03 UTC (rev 3653)
@@ -10,7 +10,7 @@
$this->PluginBase();
$this->id = "mailcentre";
- $this->desc = "Allows site administrators to send emails to users";
+ $this->desc = "Allows site administrators to send emails to users";
$this->author = "The pLog Team";
$this->locale = Array();
@@ -22,36 +22,38 @@
// register a few actions
$this->registerAdminAction( "mailcentreSendMail", "MailCentreSendMail" );
$this->registerAdminAction( "mailcentreSentMail", "MailCentreSentmail" );
- $this->registerAdminAction( "mailcentreSendMessage", "MailCentreSendMessage" );
- $this->registerAdminAction( "mailcentreUserSelector", "MailCentreUserSelectorAction" );
- $this->registerAdminAction( "mailcentreShowMessage", "MailCentreViewSentMail" );
- $this->registerAdminAction( "mailcentreDeleteMessage", "MailCentreDeleteSentMailAction" );
+ $this->registerAdminAction( "mailcentreSendMessage", "MailCentreSendMessage" );
+ $this->registerAdminAction( "mailcentreUserSelector", "MailCentreUserSelectorAction" );
+ $this->registerAdminAction( "mailcentreShowMessage", "MailCentreViewSentMail" );
+ $this->registerAdminAction( "mailcentreDeleteMessage", "MailCentreDeleteSentMailAction" );
$this->registerAdminAction( "mailcentreDeleteMessages", "MailCentreDeleteSentMailAction" );
- }
-
- /**
- * @see PluginBase::init()
- *
- */
- function init()
- {
+ }
+
+ /**
+ * @see PluginBase::install()
+ *
+ */
+ function install()
+ {
// check if the database tables are there
- $this->_checkTables();
+ $this->_checkTables();
}
/**
* @private
*/
function _checkTables()
- {
- include_once( PLOG_CLASS_PATH."class/database/db.class.php" );
+ {
+ include_once( PLOG_CLASS_PATH."class/database/db.class.php" );
+
+ print("checking tables?");
// create the table to keep track of the voters, so that people cannot vote
// more than once
$fields = "
id I(10) NOTNULL PRIMARY AUTOINCREMENT,
- recipients TEXT NOTNULL DEFAULT '',
- recipients_cc TEXT NOTNULL DEFAULT '',
+ recipients TEXT NOTNULL DEFAULT '',
+ recipients_cc TEXT NOTNULL DEFAULT '',
recipients_bcc TEXT NOTNULL DEFAULT '',
subject C(255) NOTNULL DEFAULT '',
body XL NOTNULL DEFAULT '',
More information about the pLog-svn
mailing list