Changeset 1891
- Timestamp:
- 11/16/09 21:51:06 (13 years ago)
- Location:
- plugins/superAdmin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/superAdmin/_define.php
r1890 r1891 28 28 /* Description*/ 'Administrate the posts and comments of all the blogs ', 29 29 /* Author */ 'Moe (http://gniark.net/)', 30 /* Version */ '0.5 .1',30 /* Version */ '0.5-alpha3', 31 31 /* Permissions */ null 32 32 ); -
plugins/superAdmin/cpmv_post.php
r1878 r1891 131 131 $core->callBehavior('adminBeforePostCreate',$cur); 132 132 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 134 135 if ($post_status == -1) { 135 136 $scheduled = true; 136 $rs->post_status = -2; //will create post with pending state137 $rs->post_status = -2; # will create post with pending state 137 138 } else { 138 139 $scheduled = false; … … 141 142 $return_id = $core->blog->addPost($cur); 142 143 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 144 146 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); 149 148 } 150 149
Note: See TracChangeset
for help on using the changeset viewer.