Skip to content

Commit

Permalink
Item1344: add encoding to META:TOPICINFO
Browse files Browse the repository at this point in the history
  • Loading branch information
crawford committed Sep 1, 2014
1 parent 401f6dd commit f5027e1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions PlainFileStoreContrib/lib/Foswiki/Store/PlainFile.pm
Original file line number Diff line number Diff line change
Expand Up @@ -446,9 +446,10 @@ sub saveTopic {

# Fix TOPICINFO
my $ti = $meta->get('TOPICINFO');
$ti->{version} = $rn;
$ti->{date} = $options->{forcedate} || time;
$ti->{author} = $cUID;
$ti->{version} = $rn;
$ti->{date} = $options->{forcedate} || time;
$ti->{author} = $cUID;
$ti->{encoding} = $Foswiki::cfg{Site}{CharSet};

# Create new latest
my $latest = _latestFile($meta);
Expand Down Expand Up @@ -481,6 +482,9 @@ sub saveTopic {
newmeta => $meta
);

# Remove encoding information
delete $ti->{encoding};

return $rn;
}

Expand Down

0 comments on commit f5027e1

Please sign in to comment.