Changeset 779


Ignore:
Timestamp:
Apr 30, 2005, 10:37:43 PM (19 years ago)
Author:
plg
Message:
  • bug 95 fixed : "default maxwidth and maxheight not registered". In fact, these informations were registered, but not tested and displayed. Tests and siplay were added.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_4/admin/configuration.php

    r700 r779  
    9595        array_push($errors, $lang['periods_error']);
    9696      }
     97      // maxwidth
     98      if (isset($_POST['default_maxwidth'])
     99          and !empty($_POST['default_maxwidth'])
     100          and (!preg_match($int_pattern, $_POST['default_maxwidth'])
     101               or $_POST['default_maxwidth'] < 50))
     102      {
     103        array_push($errors, $lang['maxwidth_error']);
     104      }
     105      // maxheight
     106      if (isset($_POST['default_maxheight'])
     107          and !empty($_POST['default_maxheight'])
     108          and (!preg_match($int_pattern, $_POST['default_maxheight'])
     109               or $_POST['default_maxheight'] < 50))
     110      {
     111        array_push($errors, $lang['maxheight_error']);
     112      }
    97113      break;
    98114    }
     
    256272        'CONF_RECENT'=>$conf['recent_period'],
    257273        'NB_COMMENTS_PAGE'=>$conf['nb_comment_page'],
     274        'MAXWIDTH'=>$conf['default_maxwidth'],
     275        'MAXHEIGHT'=>$conf['default_maxheight'],
    258276        'EXPAND_YES'=>$expand_yes,
    259277        'EXPAND_NO'=>$expand_no,
Note: See TracChangeset for help on using the changeset viewer.