Ignore:
Timestamp:
May 18, 2014, 12:58:53 PM (10 years ago)
Author:
mistic100
Message:

feature 2679 : allow to change creation time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/picture_modify.php

    r28497 r28500  
    128128  if (!empty($_POST['date_creation']))
    129129  {
    130     $data['date_creation'] = $_POST['date_creation'].' '.$_POST['date_creation_time'];
     130    $data['date_creation'] = $_POST['date_creation'];
    131131  }
    132132  else
     
    255255        : @$row['author']
    256256      ),
     257
     258    'DATE_CREATION' => $row['date_creation'],
    257259
    258260    'DESCRIPTION' =>
     
    317319  );
    318320
    319 // creation date
    320 unset($day, $month, $year);
    321 
    322 if (!empty($row['date_creation']))
    323 {
    324   list($date, $time) = explode(' ', $row['date_creation']);
    325 }
    326 else
    327 {
    328   $date = '';
    329   $time = '00:00:00';
    330 }
    331 
    332 $template->assign(
    333     array(
    334       'DATE_CREATION' => $date,
    335       'DATE_CREATION_TIME' => $time,
    336       )
    337     );
    338 
     321// categories
    339322$query = '
    340323SELECT category_id, uppercats
Note: See TracChangeset for help on using the changeset viewer.