Changeset 13084 for trunk/admin/picture_modify.php
- Timestamp:
- Feb 10, 2012, 5:10:00 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/picture_modify.php
r13077 r13084 297 297 while ($user_row = pwg_db_fetch_assoc($result)) 298 298 { 299 $added_by = $user_row['username']; 300 } 301 302 $intro = sprintf( 303 l10n('This photo was posted on %s by %s.'), 304 format_date($row['date_available']), 305 $added_by 306 ); 307 308 $intro.= ' '; 309 310 $intro.= sprintf( 311 l10n('Original file is %s, %ux%u pixels, %.2fMB.'), 312 $row['file'], 313 $row['width'], 314 $row['height'], 315 $row['filesize']/1024 316 ); 317 318 $intro.= ' '; 319 320 $intro.= sprintf( 321 l10n('%u visits'), 322 $row['hit'] 299 $row['added_by'] = $user_row['username']; 300 } 301 302 $intro_vars = array( 303 'file' => sprintf(l10n('Original file : %s'), $row['file']), 304 'added' => sprintf(l10n('Posted %s on %s by %s'), time_since($row['date_available'], 'month'), format_date($row['date_available'], false, false), $row['added_by']), 305 'size' => $row['width'].'×'.$row['height'].' pixels, '.sprintf('%.2f', $row['filesize']/1024).'MB', 306 'hits' => sprintf(l10n('%d visits'), $row['hit']), 307 'id' => sprintf(l10n('Numeric identifier : %d'), $row['id']), 323 308 ); 324 309 … … 331 316 WHERE element_id = '.$_GET['image_id'].' 332 317 ;'; 333 list($ nb_rates) = pwg_db_fetch_row(pwg_query($query));318 list($row['nb_rates']) = pwg_db_fetch_row(pwg_query($query)); 334 319 335 $intro.= sprintf( 336 l10n(', %u rates, rating score %s'), 337 $nb_rates, 338 $row['rating_score'] 339 ); 340 } 341 342 $intro.= '. '; 343 344 $intro.= sprintf( 345 l10n('Numeric identifier is %u.'), 346 $row['id'] 347 ); 348 349 $template->assign('INTRO', $intro); 320 $intro_vars['rate'] = sprintf(l10n('Rated %d times, score : %f'), $row['nb_rates'], $row['rating_score']); 321 } 322 323 $template->assign('INTRO', $intro_vars); 324 350 325 351 326 if (in_array(get_extension($row['path']),$conf['picture_ext']))
Note: See TracChangeset
for help on using the changeset viewer.