Dotclear


Ignore:
Timestamp:
11/24/14 14:39:55 (11 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

cope with different entry types for pagination, fixes #1971

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/popup_posts.php

    r2809 r2811  
    2525     $type_combo[__($k)] = (string) $k; 
    2626} 
    27 $type = !empty($_POST['selected_type']) ? $_POST['selected_type'] : null; 
    28 if (!$type && $q) { 
    29      // Cope with search form 
    30      $type = !empty($_GET['type']) ? $_GET['type'] : null; 
    31 } 
    3227if (!in_array($type, $type_combo)) { 
    3328     $type = null; 
     
    5348echo '<h2 class="page-title">'.__('Add a link to an entry').'</h2>'; 
    5449 
    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>'. 
     50echo '<form action="popup_posts.php" method="get">'. 
     51     '<p><label for="type" class="classic">'.__('Entry type:').'</label> '.form::combo('type',$type_combo,$type).''. 
    5852     '<noscript><div><input type="submit" value="'.__('Ok').'" /></div></noscript>'. 
    5953     '</form>'; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map