Changeset 12017 for trunk/admin
- Timestamp:
- Aug 31, 2011, 3:25:07 PM (13 years ago)
- Location:
- trunk/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/cat_perm.php
r11729 r12017 89 89 and count($_POST['grant_groups']) > 0) 90 90 { 91 $cat_ids = (isset($_POST['apply_on_sub'])) ? implode(',', get_subcat_ids(array($page['cat']))).",".implode(',', get_uppercat_ids(array($page['cat']))) : implode(',', get_uppercat_ids(array($page['cat']))); 92 91 93 $query = ' 92 94 SELECT id 93 95 FROM '.CATEGORIES_TABLE.' 94 WHERE id IN ('. implode(',', get_uppercat_ids(array($page['cat']))).')96 WHERE id IN ('.$cat_ids.') 95 97 AND status = \'private\' 96 98 ;'; -
trunk/admin/themes/default/template/cat_perm.tpl
r8128 r12017 26 26 {/foreach} 27 27 </ul> 28 <label><input type="checkbox" name="apply_on_sub">{'Apply to sub-album'|@translate}</label> 28 29 <input class="submit" type="submit" name="grant_groups_submit" value="{'Grant selected groups'|@translate}"> 29 30 </fieldset>
Note: See TracChangeset
for help on using the changeset viewer.