Changeset 2486


Ignore:
Timestamp:
Aug 23, 2008, 3:21:53 AM (16 years ago)
Author:
rvelices
Message:
  • bug 843: Author Info not saving when photos are uploaded
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_7/upload.php

    r2034 r2486  
    104104      case 3 : $result['type'] = 'png'; break;
    105105      default :
    106         array_push( $result['error'], l10n('upload_advise_filetype') ); 
     106        array_push( $result['error'], l10n('upload_advise_filetype') );
    107107      }
    108108    }
     
    135135  $category = get_cat_info( $page['category'] );
    136136  $category['cat_dir'] = get_complete_dir( $page['category'] );
    137  
     137
    138138  if (url_is_remote($category['cat_dir']) or !$category['uploadable'])
    139139  {
     
    174174    array_push( $error, l10n('upload_err_username') );
    175175  }
    176  
     176
    177177  $date_creation = '';
    178178  if ( !empty($_POST['date_creation']) )
     
    192192  // <infos author="Pierrick LE GALL" comment="my comment"
    193193  //        date_creation="2004-08-14" name="" />
    194   $xml_infos = '<infos';
     194  $xml_infos = '<infos ';
    195195  $xml_infos.= encodeAttribute('author', $_POST['author']);
    196196  $xml_infos.= encodeAttribute('comment', $_POST['comment']);
     
    203203    array_push( $error, l10n('update_wrong_dirname') );
    204204  }
    205  
     205
    206206  if ( sizeof( $error ) == 0 )
    207207  {
     
    333333    )
    334334  );
    335  
     335
    336336if ( !$page['upload_successful'] )
    337337{
     
    386386  }
    387387  $template->assign_block_vars('upload_not_successful.advise',array('ADVISE'=>l10n('upload_advise_filetype')));
    388  
     388
    389389//----------------------------------------- optionnal username and mail address
    390390  if ( !isset( $page['waiting_id'] ) )
Note: See TracChangeset for help on using the changeset viewer.