Ignore:
Timestamp:
Mar 25, 2010, 6:59:35 AM (14 years ago)
Author:
rvelices
Message:
  • fix cat_modify
    • missing token in url
    • double icon display
  • simplified func check_pwg_token
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/cat_modify.php

    r5207 r5335  
    2727}
    2828
    29 include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
    3029include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php');
    3130
     
    290289  $template->assign(
    291290    array(
    292       'U_DELETE' => $self_url.'&delete='.$category['id'],
     291      'U_DELETE' => $self_url.'&delete='.$category['id'].'&pwg_token='.get_pwg_token(),
    293292      )
    294293    );
     
    345344      'DIRECTION' => array('ASC'),
    346345    );
    347  
     346
    348347  if ( isset($matches[1][$i]) )
    349348  {
    350349    $tpl_image_order_select['FIELD'] = array($matches[1][$i]);
    351350  }
    352  
     351
    353352  if (isset($matches[2][$i]) and strcasecmp($matches[2][$i],'DESC')==0)
    354353  {
     
    451450  set_make_full_url();
    452451
    453   /* TODO: if $category['representative_picture_id'] 
     452  /* TODO: if $category['representative_picture_id']
    454453    is empty find child representative_picture_id */
    455454  if (!empty($category['representative_picture_id']))
     
    475474    }
    476475  }
    477  
     476
    478477  if (!isset($img_url))
    479478  {
     
    513512;';
    514513  list($group_name) = pwg_db_fetch_row(pwg_query($query));
    515  
     514
    516515  array_push(
    517516    $page['infos'],
Note: See TracChangeset for help on using the changeset viewer.