Changeset 27487


Ignore:
Timestamp:
Feb 25, 2014, 11:36:11 AM (7 years ago)
Author:
mistic100
Message:

redirect to previous page keeping pagination when deleting photo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AdminTools/include/events.inc.php

    r26061 r27487  
    213213    invalidate_user_cache();
    214214
    215     if (isset($page['category']))
     215    if (isset($page['rank_of'][ $page['image_id'] ]))
    216216    {
    217217      redirect(
    218         make_index_url(
     218        duplicate_index_url(
    219219          array(
    220             'category' => $page['category']
     220            'start' =>
     221              floor($page['rank_of'][ $page['image_id'] ] / $page['nb_image_page'])
     222              * $page['nb_image_page']
    221223            )
    222224          )
    223225        );
    224226    }
    225 
    226     redirect(make_index_url());
     227    else
     228    {
     229      redirect(make_index_url());
     230    }
    227231  }
    228232
Note: See TracChangeset for help on using the changeset viewer.