Dotclear

Changeset 1891


Ignore:
Timestamp:
11/16/09 21:51:06 (13 years ago)
Author:
Moe
Message:

Super Admin 0.5-alpha3 :

  • a little tidy up (see #230)
Location:
plugins/superAdmin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/superAdmin/_define.php

    r1890 r1891  
    2828     /* Description*/         'Administrate the posts and comments of all the blogs ', 
    2929     /* Author */                  'Moe (http://gniark.net/)', 
    30      /* Version */                 '0.5.1', 
     30     /* Version */                 '0.5-alpha3', 
    3131     /* Permissions */        null 
    3232); 
  • plugins/superAdmin/cpmv_post.php

    r1878 r1891  
    131131          $core->callBehavior('adminBeforePostCreate',$cur); 
    132132           
    133           // Special case of scheduled post : save state and temporary unset to pending 
     133          # Special case of scheduled post : 
     134          #  save state and temporary unset to pending 
    134135          if ($post_status == -1) { 
    135136               $scheduled = true; 
    136                $rs->post_status = -2;   // will create post with pending state 
     137               $rs->post_status = -2; # will create post with pending state 
    137138          } else { 
    138139               $scheduled = false; 
     
    141142          $return_id = $core->blog->addPost($cur); 
    142143           
    143           // Special case of scheduled post : switch back created post to to scheduled state 
     144          # Special case of scheduled post : 
     145          #  switch back created post to scheduled state 
    144146          if ($scheduled) { 
    145                $cur->post_status = -1; // scheduled 
    146                $cur->post_dt = $rs->post_dt; 
    147                $cur->post_tz = $rs->post_tz; 
    148                $core->blog->updPost($return_id, $cur); 
     147               $core->blog->updPostStatus($return_id,-1); 
    149148          } 
    150149           
Note: See TracChangeset for help on using the changeset viewer.

Sites map