Changeset 2627:9d1adf085d11 for inc/admin/actions/class.dcactionposts.php
- Timestamp:
- 12/31/13 09:45:56 (12 years ago)
- Branch:
- 2.6
- Children:
- 2628:a46041c31f11, 2631:505e3c81524e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/actions/class.dcactionposts.php
r2494 r2627 68 68 69 69 protected function fetchEntries($from) { 70 $params = array(); 70 71 if (!empty($from['entries'])) 71 72 { … … 77 78 78 79 $params['sql'] = 'AND P.post_id IN('.implode(',',$entries).') '; 79 80 if (!isset($from['full_content']) || empty($from['full_content'])) {81 $params['no_content'] = true;82 } 83 84 if (isset($from['post_type'])) {85 $params['post_type'] = $from['post_type'];86 } 87 88 $p osts = $this->core->blog->getPosts($params);89 while ($posts->fetch()) {90 $this->entries[$posts->post_id] = $posts->post_title; 91 }92 $this->rs = $posts;93 } else {94 $this->rs = $this->core->con->select("SELECT blog_id FROM ".$this->core->prefix."blog WHERE false");;95 }80 } else { 81 $params['sql'] = 'AND 1=0 '; 82 } 83 84 if (!isset($from['full_content']) || empty($from['full_content'])) { 85 $params['no_content'] = true; 86 } 87 88 if (isset($from['post_type'])) { 89 $params['post_type'] = $from['post_type']; 90 } 91 92 $posts = $this->core->blog->getPosts($params); 93 while ($posts->fetch()) { 94 $this->entries[$posts->post_id] = $posts->post_title; 95 } 96 $this->rs = $posts; 96 97 } 97 98 }
Note: See TracChangeset
for help on using the changeset viewer.