Ignore:
Timestamp:
Sep 19, 2005, 12:29:17 AM (19 years ago)
Author:
plg
Message:
  • bug 111 fixed: "Can't add virtual category when cookie disabled". Correction reported from branch 1.4.
  • bug 109 fixed : "disabled "best rated" menu item when rating is not enabled". Correction reported from branch 1.4.
  • bug 95 fixed : "default maxwidth and maxheight not registered". Correction reported from branch 1.4.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/configuration.php

    r858 r869  
    8383        array_push($page['errors'], $lang['periods_error']);
    8484      }
     85      // maxwidth
     86      if (isset($_POST['default_maxwidth'])
     87          and !empty($_POST['default_maxwidth'])
     88          and (!preg_match($int_pattern, $_POST['default_maxwidth'])
     89               or $_POST['default_maxwidth'] < 50))
     90      {
     91        array_push($page['errors'], $lang['maxwidth_error']);
     92      }
     93      // maxheight
     94      if (isset($_POST['default_maxheight'])
     95          and !empty($_POST['default_maxheight'])
     96          and (!preg_match($int_pattern, $_POST['default_maxheight'])
     97               or $_POST['default_maxheight'] < 50))
     98      {
     99        array_push($page['errors'], $lang['maxheight_error']);
     100      }
    85101      break;
    86102    }
     
    90106  if (count($page['errors']) == 0)
    91107  {
    92     echo '<pre>'; print_r($_POST); echo '</pre>';
     108//    echo '<pre>'; print_r($_POST); echo '</pre>';
    93109    $result = pwg_query('SELECT * FROM '.CONFIG_TABLE);
    94110    while ($row = mysql_fetch_array($result))
     
    177193        'CONF_RECENT'=>$conf['recent_period'],
    178194        'NB_COMMENTS_PAGE'=>$conf['nb_comment_page'],
     195        'MAXWIDTH'=>$conf['default_maxwidth'],
     196        'MAXHEIGHT'=>$conf['default_maxheight'],
    179197        'EXPAND_YES'=>$expand_yes,
    180198        'EXPAND_NO'=>$expand_no,
Note: See TracChangeset for help on using the changeset viewer.