Ignore:
Timestamp:
Mar 17, 2012, 1:47:17 AM (12 years ago)
Author:
plg
Message:

feature 2594: redesign on album permission screen. The choice "public/private"
is not on the "properties" tab anymore. Simpler ergonomy to select grant users
and groups.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/cat_modify.php

    r13077 r13580  
    145145    set_cat_visible(array($_GET['cat_id']), $_POST['visible']);
    146146  }
    147   if ($cat_info['status'] != $_POST['status'] )
    148   {
    149     set_cat_status(array($_GET['cat_id']), $_POST['status']);
    150   }
    151147
    152148  // in case the use moves his album to the gallery root, we force
     
    164160  }
    165161
    166   // we redirect to hide/show the "permissions" tab if the category status
    167   // has changed
    168   $_SESSION['page_infos'] = array(l10n('Album updated successfully'));
    169   redirect($admin_album_base_url);
     162  array_push($page['infos'], l10n('Album updated successfully'));
    170163}
    171164elseif (isset($_POST['set_random_representant']))
     
    227220    'CAT_NAME'           => @htmlspecialchars($category['name']),
    228221    'CAT_COMMENT'        => @htmlspecialchars($category['comment']),
    229 
    230     'status_values'     => array('public','private'),
    231 
    232     'CAT_STATUS'        => $category['status'],
    233222    'CAT_VISIBLE'       => boolean_to_string($category['visible']),
    234223
Note: See TracChangeset for help on using the changeset viewer.