From a3b23df6ef58811247c4d75da02edf7bad2d73e7 Mon Sep 17 00:00:00 2001 From: rvelices Date: Thu, 27 Sep 2007 22:46:17 +0000 Subject: - admin, comments and tags pages include page_header later in the code (as in picture and index) allowing plugins to change the header until the very end - fix in admin.php : picture_modify requires cache invalidation - fix in site_update.php : some echo func calls changed to $template->output .= ... - upgraded prototype.js to latest version 1.5.1.1 git-svn-id: http://piwigo.org/svn/trunk@2107 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/site_update.php | 60 +++++++++++++++++++++++++-------------------------- 1 file changed, 29 insertions(+), 31 deletions(-) (limited to 'admin') diff --git a/admin/site_update.php b/admin/site_update.php index 7e83d62fb..f19b10d1e 100644 --- a/admin/site_update.php +++ b/admin/site_update.php @@ -231,7 +231,6 @@ SELECT IF(MAX(id)+1 IS NULL, 1, MAX(id)+1) AS next_id // retrieve sub-directories fulldirs from the site reader $fs_fulldirs = $site_reader->get_full_directories($basedir); - //print_r( $fs_fulldirs ); echo "
"; // get_full_directories doesn't include the base directory, so if it's a // category directory, we need to include it in our array @@ -352,9 +351,9 @@ SELECT IF(MAX(id)+1 IS NULL, 1, MAX(id)+1) AS next_id $counts['del_categories'] = count($to_delete); } - echo ''."\n"; + $template->output .= ''."\n"; } // +-----------------------------------------------------------------------+ // | files / elements | @@ -366,8 +365,9 @@ if (isset($_POST['submit']) and $_POST['sync'] == 'files' $start= $start_files; $fs = $site_reader->get_elements($basedir); - //print_r($fs); echo "
"; - echo '\n"; + $template->output .= '\n"; $cat_ids = array_diff(array_keys($db_categories), $to_delete); @@ -571,9 +571,9 @@ SELECT IF(MAX(id)+1 IS NULL, 1, MAX(id)+1) AS next_element_id $counts['del_elements'] = count($to_delete_elements); } - echo ''."\n"; + $template->output .= ''."\n"; // retrieving informations given by uploaders if (!$simulate and count($cat_ids) > 0) @@ -643,15 +643,15 @@ if (isset($_POST['submit']) { $start = get_moment(); update_category('all'); - echo ''."\n"; + $template->output .= ''."\n"; $start = get_moment(); ordering(); update_global_rank(); - echo ''."\n"; + $template->output .= ''."\n"; } if ($_POST['sync'] == 'files') @@ -670,9 +670,9 @@ if (isset($_POST['submit']) $files = get_filelist($opts['category_id'], $site_id, $opts['recursive'], false); - echo ''."\n"; + $template->output .= ''."\n"; $start = get_moment(); $datas = array(); @@ -716,9 +716,9 @@ if (isset($_POST['submit']) $datas ); } - echo ''."\n"; + $template->output .= ''."\n"; }// end if sync files } @@ -772,9 +772,9 @@ if (isset($_POST['submit']) and preg_match('/^metadata/', $_POST['sync']) $opts['recursive'], $opts['only_new']); - echo ''."\n"; + $template->output .= ''."\n"; $start = get_moment(); $datas = array(); @@ -805,14 +805,14 @@ SELECT id array_push($has_high_images, $row['id']); } } - + foreach ( $files as $id=>$file ) { $data = $site_reader->get_element_metadata( $file, in_array($id, $has_high_images) ); - + if ( is_array($data) ) { $data['date_metadata_update'] = CURRENT_DATE; @@ -848,8 +848,6 @@ SELECT id { if (count($datas) > 0) { - // echo '
', print_r($datas); echo '
'; - mass_updates( IMAGES_TABLE, // fields @@ -871,9 +869,9 @@ SELECT id set_tags_of($tags_of); } - echo ''."\n"; + $template->output .= ''."\n"; $template->assign_block_vars( 'metadata_result', -- cgit v1.2.3