Changeset 3874:ab8368569446 for admin/search.php
- Timestamp:
- 09/14/18 12:16:17 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/search.php
r3731 r3874 26 26 $q = html::escapeHTML($q); 27 27 28 $params = array();28 $params = []; 29 29 30 30 # Get posts … … 33 33 34 34 $params['search'] = $q; 35 $params['limit'] = array((($page - 1) * $nb_per_page), $nb_per_page);35 $params['limit'] = [(($page - 1) * $nb_per_page), $nb_per_page]; 36 36 $params['no_content'] = true; 37 37 $params['order'] = 'post_dt DESC'; … … 50 50 51 51 $params['search'] = $q; 52 $params['limit'] = array((($page - 1) * $nb_per_page), $nb_per_page);52 $params['limit'] = [(($page - 1) * $nb_per_page), $nb_per_page]; 53 53 $params['no_content'] = true; 54 54 $params['order'] = 'comment_dt DESC'; … … 65 65 66 66 if ($qtype == 'p') { 67 $posts_actions_page = new dcPostsActionsPage($core, $core->adminurl->get("admin.search"), array('q' => $q, 'qtype' => $qtype));67 $posts_actions_page = new dcPostsActionsPage($core, $core->adminurl->get("admin.search"), ['q' => $q, 'qtype' => $qtype]); 68 68 69 69 if ($posts_actions_page->process()) { … … 71 71 } 72 72 } else { 73 $comments_actions_page = new dcCommentsActionsPage($core, $core->adminurl->get("admin.search"), array('q' => $q, 'qtype' => $qtype));73 $comments_actions_page = new dcCommentsActionsPage($core, $core->adminurl->get("admin.search"), ['q' => $q, 'qtype' => $qtype]); 74 74 75 75 if ($comments_actions_page->process()) { … … 80 80 dcPage::open(__('Search'), $starting_scripts, 81 81 dcPage::breadcrumb( 82 array(82 [ 83 83 html::escapeHTML($core->blog->name) => '', 84 84 __('Search') => '' 85 ))85 ]) 86 86 ); 87 87 … … 90 90 '<div class="fieldset"><h3>' . __('Search options') . '</h3>' . 91 91 '<p><label for="q">' . __('Query:') . ' </label>' . form::field('q', 30, 255, $q) . '</p>' . 92 '<p><label for="qtype1" class="classic">' . form::radio( array('qtype', 'qtype1'), 'p', $qtype == 'p') . ' ' . __('Search in entries') . '</label> ' .93 '<label for="qtype2" class="classic">' . form::radio( array('qtype', 'qtype2'), 'c', $qtype == 'c') . ' ' . __('Search in comments') . '</label></p>' .92 '<p><label for="qtype1" class="classic">' . form::radio(['qtype', 'qtype1'], 'p', $qtype == 'p') . ' ' . __('Search in entries') . '</label> ' . 93 '<label for="qtype2" class="classic">' . form::radio(['qtype', 'qtype2'], 'c', $qtype == 'c') . ' ' . __('Search in comments') . '</label></p>' . 94 94 '<p><input type="submit" value="' . __('Search') . '" /></p>' . 95 95 '</div>' . … … 117 117 118 118 '<p class="col right"><label for="action1" class="classic">' . __('Selected entries action:') . '</label> ' . 119 form::combo( array('action', 'action1'), $posts_actions_page->getCombo()) .119 form::combo(['action', 'action1'], $posts_actions_page->getCombo()) . 120 120 '<input id="do-action" type="submit" value="' . __('ok') . '" /></p>' . 121 121 $core->formNonce() . … … 144 144 145 145 '<p class="col right"><label for="action2" class="classic">' . __('Selected comments action:') . '</label> ' . 146 form::combo( array('action', 'action2'), $comments_actions_page->getCombo()) .146 form::combo(['action', 'action2'], $comments_actions_page->getCombo()) . 147 147 '<input id="do-action" type="submit" value="' . __('ok') . '" /></p>' . 148 148 $core->formNonce() .
Note: See TracChangeset
for help on using the changeset viewer.