Changeset 12887 for trunk/profile.php


Ignore:
Timestamp:
Jan 14, 2012, 11:29:10 PM (12 years ago)
Author:
mistic100
Message:

feature:2549 Allow to disable comments for everybody

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/profile.php

    r12884 r12887  
    257257      $fields = array(
    258258        'nb_image_page', 'language',
    259         'expand', 'show_nb_comments', 'show_nb_hits', 'recent_period', 'theme'
     259        'expand', 'show_nb_hits', 'recent_period', 'theme'
    260260        );
     261       
     262      if ($conf['activate_comments'])
     263      {
     264        array_push($fields, 'show_nb_comments');
     265      }
    261266
    262267      $data = array();
     
    301306      'EMAIL'=>get_email_address_as_display_text(@$userdata['email']),
    302307      'ALLOW_USER_CUSTOMIZATION'=>$conf['allow_user_customization'],
     308      'ACTIVATE_COMMENTS'=>$conf['activate_comments'],
    303309      'NB_IMAGE_PAGE'=>$userdata['nb_image_page'],
    304310      'RECENT_PERIOD'=>$userdata['recent_period'],
Note: See TracChangeset for help on using the changeset viewer.