Changeset 12887 for trunk/admin/cat_modify.php
- Timestamp:
- Jan 14, 2012, 11:29:10 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/cat_modify.php
r12796 r12887 49 49 'id' => $_GET['cat_id'], 50 50 'name' => @$_POST['name'], 51 'commentable' => isset($_POST['commentable'])?$_POST['commentable']:'false',52 51 'comment' => 53 52 $conf['allow_html_descriptions'] ? 54 53 @$_POST['comment'] : strip_tags(@$_POST['comment']), 55 54 ); 55 56 if ($conf['activate_comments']) 57 { 58 $data['commentable'] = isset($_POST['commentable'])?$_POST['commentable']:'false'; 59 } 56 60 57 61 mass_updates( … … 223 227 'CAT_STATUS' => $category['status'], 224 228 'CAT_VISIBLE' => boolean_to_string($category['visible']), 225 'CAT_COMMENTABLE' => boolean_to_string($category['commentable']),226 229 227 230 'U_JUMPTO' => make_index_url( … … 239 242 ) 240 243 ); 244 245 if ($conf['activate_comments']) 246 { 247 $template->assign('CAT_COMMENTABLE', boolean_to_string($category['commentable'])); 248 } 241 249 242 250
Note: See TracChangeset
for help on using the changeset viewer.