Permalink
Browse files

bug:2756 feature:2737 on batch manager use "tag" url parameter instea…

…d of re-use "cat"

git-svn-id: http://piwigo.org/svn/trunk@18459 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information...
mistic100 committed Oct 4, 2012
1 parent 2a9e479 commit b5f020ee66b13bce8275a4d64faf8710c362a6d1
Showing with 13 additions and 13 deletions.
  1. +11 −11 admin/batch_manager.php
  2. +1 −1 admin/batch_manager_global.php
  3. +1 −1 admin/tags.php
@@ -104,35 +104,35 @@
}
}
}
if (isset($_GET['cat']))
else if (isset($_GET['cat']))
{
if ('caddie' == $_GET['cat'])
{
$_SESSION['bulk_manager_filter'] = array(
'prefilter' => 'caddie'
);
}
if ('recent' == $_GET['cat'])
else if ('recent' == $_GET['cat'])
{
$_SESSION['bulk_manager_filter'] = array(
'prefilter' => 'last import'
);
}
if (is_numeric($_GET['cat']))
else if (is_numeric($_GET['cat']))
{
$_SESSION['bulk_manager_filter'] = array(
'category' => $_GET['cat']
);
}
if (strpos($_GET['cat'],'tag-')===0)
}
else if (isset($_GET['tag']))
{
if (is_numeric($_GET['tag']))
{
$_SESSION['bulk_manager_filter']=array();
$_SESSION['bulk_manager_filter']['tags'] = array(intval(substr($_GET['cat'],4)));
$_SESSION['bulk_manager_filter']['tag_mode'] = 'AND';
$_SESSION['bulk_manager_filter'] = array(
'tags' => array($_GET['tag']),
'tag_mode' => 'AND',
);
}
}
@@ -474,7 +474,7 @@
'all_elements' => $page['cat_elements_id'],
'START' => $page['start'],
'U_DISPLAY'=>$base_url.get_query_string_diff(array('display')),
'F_ACTION'=>$base_url.get_query_string_diff(array('cat','start')),
'F_ACTION'=>$base_url.get_query_string_diff(array('cat','start','tag')),
)
);
@@ -461,7 +461,7 @@
$tag['name'] = trigger_event('render_tag_name', $raw_name);
$tag['counter'] = intval(@$tag_counters[ $tag['id'] ]);
$tag['U_VIEW'] = make_index_url(array('tags'=>array($tag)));
$tag['U_EDIT'] = 'admin.php?page=batch_manager&cat=tag-'.$tag['id'];
$tag['U_EDIT'] = 'admin.php?page=batch_manager&tag='.$tag['id'];
$alt_names = trigger_event('get_tag_alt_names', array(), $raw_name);
$alt_names = array_diff( array_unique($alt_names), array($tag['name']) );

0 comments on commit b5f020e

Please sign in to comment.