Changeset 12877 for trunk/profile.php


Ignore:
Timestamp:
Jan 12, 2012, 6:57:43 AM (12 years ago)
Author:
rvelices
Message:

remove max photo width/height from user profile because not used anymore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/profile.php

    r12764 r12877  
    5050  {
    5151    $fields = array(
    52       'nb_image_page', 'maxwidth', 'maxheight', 'expand',
     52      'nb_image_page', 'expand',
    5353      'show_nb_comments', 'show_nb_hits', 'recent_period', 'show_nb_hits'
    5454      );
     
    125125    }
    126126
    127     if ($_POST['maxwidth'] != ''
    128         and (!preg_match($int_pattern, $_POST['maxwidth'])
    129              or $_POST['maxwidth'] < 50))
    130     {
    131       $errors[] = l10n('Maximum width must be a number superior to 50');
    132     }
    133     if ($_POST['maxheight']
    134          and (!preg_match($int_pattern, $_POST['maxheight'])
    135                or $_POST['maxheight'] < 50))
    136     {
    137       $errors[] = l10n('Maximum height must be a number superior to 50');
    138     }
    139127    // periods must be integer values, they represents number of days
    140128    if (!preg_match($int_pattern, $_POST['recent_period'])
     
    222210      // update user "additional" informations (specific to Piwigo)
    223211      $fields = array(
    224         'nb_image_page', 'language', 'maxwidth', 'maxheight',
     212        'nb_image_page', 'language',
    225213        'expand', 'show_nb_comments', 'show_nb_hits', 'recent_period', 'theme'
    226214        );
     
    269257      'NB_IMAGE_PAGE'=>$userdata['nb_image_page'],
    270258      'RECENT_PERIOD'=>$userdata['recent_period'],
    271       'MAXWIDTH'=>@$userdata['maxwidth'],
    272       'MAXHEIGHT'=>@$userdata['maxheight'],
    273259      'EXPAND' =>$userdata['expand'] ? 'true' : 'false',
    274260      'NB_COMMENTS'=>$userdata['show_nb_comments'] ? 'true' : 'false',
Note: See TracChangeset for help on using the changeset viewer.