Changeset 869
- Timestamp:
- Sep 19, 2005, 12:29:17 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/cat_list.php
r863 r869 239 239 'CATEGORIES_NAV'=>$navigation, 240 240 'NEXT_RANK'=>$next_rank, 241 'F_ACTION'=> $form_action,241 'F_ACTION'=>add_session_id($form_action), 242 242 243 243 'L_ADD_VIRTUAL'=>$lang['cat_add'], -
trunk/admin/configuration.php
r858 r869 83 83 array_push($page['errors'], $lang['periods_error']); 84 84 } 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 } 85 101 break; 86 102 } … … 90 106 if (count($page['errors']) == 0) 91 107 { 92 echo '<pre>'; print_r($_POST); echo '</pre>';108 // echo '<pre>'; print_r($_POST); echo '</pre>'; 93 109 $result = pwg_query('SELECT * FROM '.CONFIG_TABLE); 94 110 while ($row = mysql_fetch_array($result)) … … 177 193 'CONF_RECENT'=>$conf['recent_period'], 178 194 'NB_COMMENTS_PAGE'=>$conf['nb_comment_page'], 195 'MAXWIDTH'=>$conf['default_maxwidth'], 196 'MAXHEIGHT'=>$conf['default_maxheight'], 179 197 'EXPAND_YES'=>$expand_yes, 180 198 'EXPAND_NO'=>$expand_no, -
trunk/category.php
r858 r869 215 215 )); 216 216 // best rated 217 $template->assign_block_vars( 218 'special_cat', 219 array( 220 'URL' => add_session_id(PHPWG_ROOT_PATH.'category.php?cat=best_rated'), 221 'TITLE' => $lang['best_rated_cat_hint'], 222 'NAME' => $lang['best_rated_cat'] 223 )); 217 if ($conf['rate']) 218 { 219 $template->assign_block_vars( 220 'special_cat', 221 array( 222 'URL' => add_session_id(PHPWG_ROOT_PATH.'category.php?cat=best_rated'), 223 'TITLE' => $lang['best_rated_cat_hint'], 224 'NAME' => $lang['best_rated_cat'] 225 ) 226 ); 227 } 224 228 // random 225 229 $template->assign_block_vars( -
trunk/doc/ChangeLog
r868 r869 1 2005-09-18 Pierrick LE GALL 2 3 * bug 111 fixed: "Can't add virtual category when cookie 4 disabled". Correction reported from branch 1.4. 5 6 * bug 109 fixed : "disabled "best rated" menu item when rating is 7 not enabled". Correction reported from branch 1.4. 8 9 * bug 95 fixed : "default maxwidth and maxheight not registered 10 ". Correction reported from branch 1.4. 11 1 12 2005-09-18 Pierrick LE GALL 2 13
Note: See TracChangeset
for help on using the changeset viewer.