From a365baeef4fc0b6d593043c6db53c01671de9490 Mon Sep 17 00:00:00 2001 From: Dominik Eckelmann Date: Sat, 13 Nov 2010 19:04:26 +0100 Subject: improved some metadata comments --- inc/changelog.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'inc/changelog.php') diff --git a/inc/changelog.php b/inc/changelog.php index bb00df76c..cc7612bfd 100644 --- a/inc/changelog.php +++ b/inc/changelog.php @@ -37,6 +37,15 @@ function parseChangelogLine($line) { /** * Add's an entry to the changelog and saves the metadata for the page * + * @param int $date Timestamp of the change + * @param String $id Name of the affected page + * @param String $type Type of the change see DOKU_CHANGE_TYPE_* + * @param String $summary Summary of the change + * @param mixed $extra In case of a revert the revision (timestmp) of the reverted page + * @param array $flags Additional flags in a key value array. + * Availible flags: + * - ExternalEdit - mark as an external edit. + * * @author Andreas Gohr * @author Esther Brunner * @author Ben Coburn -- cgit v1.2.3 From a8e721331b457d168309bfdfa062d0889997abd6 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Wed, 22 Dec 2010 14:19:52 +0100 Subject: store the creator's login name in metadata FS#1397 --- inc/changelog.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'inc/changelog.php') diff --git a/inc/changelog.php b/inc/changelog.php index cc7612bfd..15cd46d77 100644 --- a/inc/changelog.php +++ b/inc/changelog.php @@ -84,7 +84,10 @@ function addLogEntry($date, $id, $type=DOKU_CHANGE_TYPE_EDIT, $summary='', $extr $meta = array(); if (!$INFO['exists'] && empty($oldmeta['persistent']['date']['created'])){ // newly created $meta['date']['created'] = $created; - if ($user) $meta['creator'] = $INFO['userinfo']['name']; + if ($user){ + $meta['creator'] = $INFO['userinfo']['name']; + $meta['user'] = $user; + } } elseif (!$INFO['exists'] && !empty($oldmeta['persistent']['date']['created'])) { // re-created / restored $meta['date']['created'] = $oldmeta['persistent']['date']['created']; $meta['date']['modified'] = $created; // use the files ctime here -- cgit v1.2.3