Changeset 18459


Ignore:
Timestamp:
10/04/12 16:14:25 (6 years ago)
Author:
mistic100
Message:

bug:2756 feature:2737 on batch manager use "tag" url parameter instead of re-use "cat"

Location:
trunk/admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/batch_manager.php

    r18332 r18459  
    105105  } 
    106106} 
    107  
    108 if (isset($_GET['cat'])) 
     107else if (isset($_GET['cat'])) 
    109108{ 
    110109  if ('caddie' == $_GET['cat']) 
     
    114113      ); 
    115114  } 
    116  
    117   if ('recent' == $_GET['cat']) 
     115  else if ('recent' == $_GET['cat']) 
    118116  { 
    119117    $_SESSION['bulk_manager_filter'] = array( 
     
    121119      ); 
    122120  } 
    123  
    124   if (is_numeric($_GET['cat'])) 
     121  else if (is_numeric($_GET['cat'])) 
    125122  { 
    126123    $_SESSION['bulk_manager_filter'] = array( 
     
    128125      ); 
    129126  } 
    130    
    131   if (strpos($_GET['cat'],'tag-')===0) 
    132   { 
    133     $_SESSION['bulk_manager_filter']=array(); 
    134     $_SESSION['bulk_manager_filter']['tags'] = array(intval(substr($_GET['cat'],4))); 
    135     $_SESSION['bulk_manager_filter']['tag_mode'] = 'AND'; 
     127} 
     128else if (isset($_GET['tag'])) 
     129{ 
     130  if (is_numeric($_GET['tag'])) 
     131  { 
     132    $_SESSION['bulk_manager_filter'] = array( 
     133      'tags' => array($_GET['tag']), 
     134      'tag_mode' => 'AND', 
     135      ); 
    136136  } 
    137137} 
  • trunk/admin/batch_manager_global.php

    r17289 r18459  
    475475    'START' => $page['start'], 
    476476    'U_DISPLAY'=>$base_url.get_query_string_diff(array('display')), 
    477     'F_ACTION'=>$base_url.get_query_string_diff(array('cat','start')), 
     477    'F_ACTION'=>$base_url.get_query_string_diff(array('cat','start','tag')), 
    478478   ) 
    479479 ); 
  • trunk/admin/tags.php

    r17765 r18459  
    462462  $tag['counter'] = intval(@$tag_counters[ $tag['id'] ]); 
    463463  $tag['U_VIEW'] = make_index_url(array('tags'=>array($tag))); 
    464   $tag['U_EDIT'] = 'admin.php?page=batch_manager&cat=tag-'.$tag['id']; 
     464  $tag['U_EDIT'] = 'admin.php?page=batch_manager&tag='.$tag['id']; 
    465465 
    466466  $alt_names = trigger_event('get_tag_alt_names', array(), $raw_name); 
Note: See TracChangeset for help on using the changeset viewer.