aboutsummaryrefslogtreecommitdiffstats
path: root/admin/picture_modify.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2014-05-18 10:58:53 +0000
committermistic100 <mistic@piwigo.org>2014-05-18 10:58:53 +0000
commit97ffdb2edc14c12502f75efef9622cecd89a3020 (patch)
tree942c99b9493aaf6a73092b89d87ce725e660dfe7 /admin/picture_modify.php
parent914b6d96d2cae67507ef848a7a229fd5319d7968 (diff)
feature 2679 : allow to change creation time
git-svn-id: http://piwigo.org/svn/trunk@28500 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/picture_modify.php25
1 files changed, 4 insertions, 21 deletions
diff --git a/admin/picture_modify.php b/admin/picture_modify.php
index d476c560f..1b99e5f55 100644
--- a/admin/picture_modify.php
+++ b/admin/picture_modify.php
@@ -127,7 +127,7 @@ if (isset($_POST['submit']))
if (!empty($_POST['date_creation']))
{
- $data['date_creation'] = $_POST['date_creation'].' '.$_POST['date_creation_time'];
+ $data['date_creation'] = $_POST['date_creation'];
}
else
{
@@ -255,6 +255,8 @@ $template->assign(
: @$row['author']
),
+ 'DATE_CREATION' => $row['date_creation'],
+
'DESCRIPTION' =>
htmlspecialchars( isset($_POST['description']) ?
stripslashes($_POST['description']) : @$row['comment'] ),
@@ -316,26 +318,7 @@ $template->assign(
)
);
-// creation date
-unset($day, $month, $year);
-
-if (!empty($row['date_creation']))
-{
- list($date, $time) = explode(' ', $row['date_creation']);
-}
-else
-{
- $date = '';
- $time = '00:00:00';
-}
-
-$template->assign(
- array(
- 'DATE_CREATION' => $date,
- 'DATE_CREATION_TIME' => $time,
- )
- );
-
+// categories
$query = '
SELECT category_id, uppercats
FROM '.IMAGE_CATEGORY_TABLE.' AS ic