Update of /cvsroot/phpmix/drupal/modules/akismet
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13969
Modified Files:
akismet.install akismet.module
Added Files:
CHANGELOG.txt
Log Message:
- Prevent from sending e-mail notifications to the same user who has written the content.
- Removing unnecessary code in hook_install.
- Added CHANGELOG.txt
--- NEW FILE: CHANGELOG.txt ---
$Id: CHANGELOG.txt,v 1.1 2006/06/12 05:27:44 markus_petrux Exp $
**********************************************************************
Akismet module in CVS
------------------------------------------------
- Prevent from sending e-mail notifications to the same user who has
written the content.
- Removing unnecessary code in hook_install.
Akismet module v1.0.0 for Drupal 4.7, 2006-06-12
------------------------------------------------
- initial release
Index: akismet.install
===================================================================
RCS file: /cvsroot/phpmix/drupal/modules/akismet/akismet.install,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** akismet.install 10 Jun 2006 17:57:35 -0000 1.3
--- akismet.install 12 Jun 2006 05:27:44 -0000 1.4
***************
*** 6,11 ****
*/
function akismet_install() {
- $ret = array();
-
switch ($GLOBALS['db_type']) {
case 'mysql':
--- 6,9 ----
***************
*** 42,47 ****
break;
}
-
- return $ret;
}
--- 40,43 ----
Index: akismet.module
===================================================================
RCS file: /cvsroot/phpmix/drupal/modules/akismet/akismet.module,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** akismet.module 12 Jun 2006 02:03:15 -0000 1.20
--- akismet.module 12 Jun 2006 05:27:44 -0000 1.21
***************
*** 1028,1032 ****
*/
function akismet_notify_moderators($content_type, $content, $is_published, $is_spam) {
! global $base_url;
// Proceed only if e-mail notifications are enabled.
--- 1028,1032 ----
*/
function akismet_notify_moderators($content_type, $content, $is_published, $is_spam) {
! global $user, $base_url;
// Proceed only if e-mail notifications are enabled.
***************
*** 1060,1068 ****
$moderators = array();
while ($u = db_fetch_object($result)) {
! $moderators[$u->uid] = array(
! 'name' => $u->name,
! 'email_to' => $u->mail,
! 'email_for' => (!is_null($u->email_for) ? $u->email_for : 'approval')
! );
}
--- 1060,1070 ----
$moderators = array();
while ($u = db_fetch_object($result)) {
! if ($u->uid != $user->uid) {
! $moderators[$u->uid] = array(
! 'name' => $u->name,
! 'email_to' => $u->mail,
! 'email_for' => (!is_null($u->email_for) ? $u->email_for : 'approval')
! );
! }
}
|