Changeset 877:e012da998f83 for inc/core
- Timestamp:
- 08/16/12 14:13:27 (13 years ago)
- Branch:
- sexy
- Location:
- inc/core
- Files:
-
- 3 edited
-
class.dc.blog.php (modified) (5 diffs)
-
class.dc.meta.php (modified) (1 diff)
-
class.dc.xmlrpc.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.blog.php
r875 r877 227 227 $strReq = 228 228 'SELECT P.post_id, P.blog_id, P.user_id, post_dt, '. 229 'post_tz, post_creadt, post_upddt, post_format, post_password,'.229 'post_tz, post_creadt, post_upddt, post_format, '. 230 230 'post_url, post_lang, post_title, '.$content_req. 231 231 'post_type, post_meta, post_status, post_selected, post_position, '. … … 246 246 247 247 if (!$this->core->auth->check('contentadmin',$this->id)) { 248 $strReq .= 'AND ((post_status = 1 '; 249 250 if ($this->without_password) { 251 $strReq .= 'AND post_password IS NULL '; 252 } 253 $strReq .= ') '; 248 $strReq .= 'AND ((post_status = 1) '; 254 249 255 250 if ($this->core->auth->userID()) { … … 436 431 437 432 if (!$this->core->auth->check('contentadmin',$this->id)) { 438 $strReq .= 'AND ((post_status = 1 '; 439 440 if ($this->without_password) { 441 $strReq .= 'AND post_password IS NULL '; 442 } 443 $strReq .= ') '; 433 $strReq .= 'AND ((post_status = 1) '; 444 434 445 435 if ($this->core->auth->userID()) { … … 518 508 519 509 if (!$this->core->auth->check('contentadmin',$this->id)) { 520 $strReq .= 'AND ((post_status = 1 '; 521 522 if ($this->without_password) { 523 $strReq .= 'AND post_password IS NULL '; 524 } 525 $strReq .= ') '; 510 $strReq .= 'AND ((post_status = 1) '; 526 511 527 512 if ($this->core->auth->userID()) { … … 905 890 } 906 891 907 if ($cur->post_password === '') {908 $cur->post_password = null;909 }910 911 892 if ($cur->post_dt == '') { 912 893 $offset = dt::getTimeOffset($this->core->auth->getInfo('user_tz')); -
inc/core/class.dc.meta.php
r873 r877 317 317 318 318 if (!$this->core->auth->check('contentadmin',$this->core->blog->id)) { 319 $strReq .= 'AND ((post_status = 1 '; 320 321 if ($this->core->blog->without_password) { 322 $strReq .= 'AND post_password IS NULL '; 323 } 324 $strReq .= ') '; 319 $strReq .= 'AND ((post_status = 1) '; 325 320 326 321 if ($this->core->auth->userID()) { -
inc/core/class.dc.xmlrpc.php
r873 r877 305 305 } 306 306 307 if (isset($struct['wp_password'])) {308 $cur->post_password = $struct['wp_password'];309 }310 311 307 $cur->post_type = 'post'; 312 308 if (!empty($struct['post_type'])) { … … 398 394 if (isset($struct['wp_slug'])) { 399 395 $cur->post_url = $struct['wp_slug']; 400 }401 402 if (isset($struct['wp_password'])) {403 $cur->post_password = $struct['wp_password'];404 396 } 405 397 … … 728 720 "text_more" => '', 729 721 "wp_slug" => $post->post_url, 730 "wp_password" => $post->post_password,731 722 "wp_author" => $post->getAuthorCN(), 732 723 "wp_page_parent_id" => 0,
Note: See TracChangeset
for help on using the changeset viewer.
