Changeset 13580 for trunk/admin/cat_modify.php
- Timestamp:
- Mar 17, 2012, 1:47:17 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/cat_modify.php
r13077 r13580 145 145 set_cat_visible(array($_GET['cat_id']), $_POST['visible']); 146 146 } 147 if ($cat_info['status'] != $_POST['status'] )148 {149 set_cat_status(array($_GET['cat_id']), $_POST['status']);150 }151 147 152 148 // in case the use moves his album to the gallery root, we force … … 164 160 } 165 161 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')); 170 163 } 171 164 elseif (isset($_POST['set_random_representant'])) … … 227 220 'CAT_NAME' => @htmlspecialchars($category['name']), 228 221 'CAT_COMMENT' => @htmlspecialchars($category['comment']), 229 230 'status_values' => array('public','private'),231 232 'CAT_STATUS' => $category['status'],233 222 'CAT_VISIBLE' => boolean_to_string($category['visible']), 234 223
Note: See TracChangeset
for help on using the changeset viewer.