Changeset 2811:612f4c2bd456 for admin/popup_posts.php
- Timestamp:
- 11/24/14 14:39:55 (11 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/popup_posts.php
r2809 r2811 25 25 $type_combo[__($k)] = (string) $k; 26 26 } 27 $type = !empty($_POST['selected_type']) ? $_POST['selected_type'] : null;28 if (!$type && $q) {29 // Cope with search form30 $type = !empty($_GET['type']) ? $_GET['type'] : null;31 }32 27 if (!in_array($type, $type_combo)) { 33 28 $type = null; … … 53 48 echo '<h2 class="page-title">'.__('Add a link to an entry').'</h2>'; 54 49 55 echo '<form action="popup_posts.php" method="post">'. 56 '<p><label for="selected_type" class="classic">'.__('Entry type:').'</label> '.form::combo('selected_type',$type_combo,$type).''. 57 $core->formNonce().'</p>'. 50 echo '<form action="popup_posts.php" method="get">'. 51 '<p><label for="type" class="classic">'.__('Entry type:').'</label> '.form::combo('type',$type_combo,$type).''. 58 52 '<noscript><div><input type="submit" value="'.__('Ok').'" /></div></noscript>'. 59 53 '</form>';
Note: See TracChangeset
for help on using the changeset viewer.