Dotclear

Changeset 511


Ignore:
Timestamp:
10/08/08 16:58:18 (15 years ago)
Author:
Moe
google:author:
appears
Message:

Subscribe to comments 1.2.4 :

  • fixed bug with plugin update
  • updated URL to custom sendmail wiki page
Location:
plugins/subscribeToComments
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • plugins/subscribeToComments/_define.php

    r510 r511  
    3030     /* Description*/                "Subscribe to comments", 
    3131     /* Author */                    "Moe (http://gniark.net/)", 
    32      /* Version */                   '1.2.3', 
     32     /* Version */                   '1.2.4', 
    3333     /* Permissions */               'admin' 
    3434); 
  • plugins/subscribeToComments/_install.php

    r510 r511  
    4343{ 
    4444     # replace old tag with new tag 
    45      if (version_compare($i_version,'1.0-RC4','<')) { 
     45     if (version_compare($i_version,'1.0-RC4','<')) 
     46     { 
    4647          $core->blog->settings->setNameSpace('subscribetocomments'); 
    4748          $core->blog->settings->put('subscribetocomments_email_subject', 
     
    5556     # move the notifications to (dc_)comment and 
    5657     # delete the table (dc_)comment_notification  
    57      if (version_compare($i_version,'1.0.4','<')) { 
     58     if (version_compare($i_version,'1.0.4','<')) 
     59     { 
    5860          # add notification_sent column to (dc_)comment  
    5961          $s = new dbStruct($core->con,$core->prefix); 
     
    8082          $core->con->execute('DROP TABLE '.$core->prefix.'comment_notification;'); 
    8183     } 
    82  
    83      # add post types 
    84      if (version_compare($i_version,'1.2','<')) { 
    85           $core->blog->settings->setNameSpace('subscribetocomments'); 
    86           # Allowed post types 
    87           $core->blog->settings->put('subscribetocomments_post_types', 
    88                serialize(subscribeToComments::getPostTypes()), 
    89                'string','Allowed post types',true,true); 
    90      } 
    91      # Change From: header of outbound emails 
    92      if (version_compare($i_version,'1.2.3','<')) { 
    93           $core->blog->settings->setNameSpace('subscribetocomments'); 
    94           $core->blog->settings->put('subscribetocomments_email_from', 
    95                'dotclear@'.$_SERVER['HTTP_HOST'], 
    96                'string','Change From: header of outbound emails',true,true); 
    97      } 
    9884} 
    99   
     85# add post types 
     86if (version_compare($i_version,'1.2.4','<')) 
     87{ 
     88     $core->blog->settings->setNameSpace('subscribetocomments'); 
     89     # Allowed post types 
     90     $core->blog->settings->put('subscribetocomments_post_types', 
     91          serialize(subscribeToComments::getPostTypes()), 
     92          'string','Allowed post types',false,true); 
     93} 
     94# Change From: header of outbound emails 
     95if (version_compare($i_version,'1.2.4','<')) 
     96{ 
     97     $core->blog->settings->setNameSpace('subscribetocomments'); 
     98     $core->blog->settings->put('subscribetocomments_email_from', 
     99          'dotclear@'.$_SERVER['HTTP_HOST'], 
     100          'string','Change From: header of outbound emails',false,true); 
     101} 
    100102 
    101103# table 
  • plugins/subscribeToComments/_prepend.php

    r489 r511  
    2424# ***** END LICENSE BLOCK ***** 
    2525 
     26if (!defined('DC_RC_PATH')) {return;} 
     27 
    2628$__autoload['subscribeToComments'] = dirname(__FILE__).'/lib.subscribeToComments.php'; 
    2729$__autoload['subscriber'] = dirname(__FILE__).'/class.subscriber.php'; 
  • plugins/subscribeToComments/index.php

    r510 r511  
    538538                         <p><?php printf( 
    539539                              __('This will send a email, if you don\'t receive it, try to <a href="%s">change the way Dotclear send emails</a>.'), 
    540                                    'http://doc.dotclear.net/2.0/admin/install/config-envoi-mail'); ?></p> 
     540                                   'http://doc.dotclear.net/2.0/admin/install/custom-sendmail'); ?></p> 
    541541                         <p><?php echo $core->formNonce(); ?></p> 
    542542                         <p><input type="submit" name="test" value="<?php echo __('Try to send an email'); ?>" /></p> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map