Changeset 14506 for trunk/admin


Ignore:
Timestamp:
Apr 28, 2012, 8:20:00 PM (12 years ago)
Author:
mistic100
Message:

redirect after changing album properties, in order to refresh display

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/cat_modify.php

    r13580 r14506  
    160160  }
    161161
    162   array_push($page['infos'], l10n('Album updated successfully'));
     162  $_SESSION['page_infos'][] = l10n('Album updated successfully');
     163  $redirect = true;
    163164}
    164165elseif (isset($_POST['set_random_representant']))
    165166{
    166167  set_random_representant(array($_GET['cat_id']));
     168  $redirect = true;
    167169}
    168170elseif (isset($_POST['delete_representant']))
     
    174176;';
    175177  pwg_query($query);
     178  $redirect = true;
     179}
     180
     181if (isset($redirect))
     182{
     183  redirect($admin_album_base_url.'-properties');
    176184}
    177185
Note: See TracChangeset for help on using the changeset viewer.