From 59129beb22716788f816da6ce3adeea342bf4261 Mon Sep 17 00:00:00 2001 From: rvelices Date: Sat, 23 Aug 2008 01:21:53 +0000 Subject: - bug 843: Author Info not saving when photos are uploaded git-svn-id: http://piwigo.org/svn/branches/branch-1_7@2486 68402e56-0260-453c-a942-63ccdbb3a9ee --- upload.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'upload.php') diff --git a/upload.php b/upload.php index 3ba555486..50dfdfba5 100644 --- a/upload.php +++ b/upload.php @@ -103,7 +103,7 @@ function validate_upload( $temp_name, $my_max_file_size, case 2 : $result['type'] = 'jpg'; break; case 3 : $result['type'] = 'png'; break; default : - array_push( $result['error'], l10n('upload_advise_filetype') ); + array_push( $result['error'], l10n('upload_advise_filetype') ); } } } @@ -134,7 +134,7 @@ if (isset($page['category'])) check_restrictions( $page['category'] ); $category = get_cat_info( $page['category'] ); $category['cat_dir'] = get_complete_dir( $page['category'] ); - + if (url_is_remote($category['cat_dir']) or !$category['uploadable']) { die('Fatal: you take a wrong way, bye bye'); @@ -173,7 +173,7 @@ if ( isset( $_POST['submit'] ) and !isset( $_GET['waiting_id'] ) ) { array_push( $error, l10n('upload_err_username') ); } - + $date_creation = ''; if ( !empty($_POST['date_creation']) ) { @@ -191,7 +191,7 @@ if ( isset( $_POST['submit'] ) and !isset( $_GET['waiting_id'] ) ) // creation of the "infos" field : // - $xml_infos = 'assign_vars( 'U_RETURN' => make_index_url(array('category' => $category)), ) ); - + if ( !$page['upload_successful'] ) { $template->assign_block_vars('upload_not_successful',array()); @@ -385,7 +385,7 @@ if ( sizeof( $error ) != 0 ) } } $template->assign_block_vars('upload_not_successful.advise',array('ADVISE'=>l10n('upload_advise_filetype'))); - + //----------------------------------------- optionnal username and mail address if ( !isset( $page['waiting_id'] ) ) { -- cgit v1.2.3