85 |
|
|
86 |
$page->{ $name } = { |
$page->{ $name } = { |
87 |
content => convert_markup( $data ), |
content => convert_markup( $data ), |
88 |
|
original => $data, |
89 |
date => convert_date( $date ), |
date => convert_date( $date ), |
90 |
attachments => $attachments, |
attachments => $attachments, |
91 |
}; |
}; |
206 |
|
|
207 |
Encode::_utf8_off( $body ); |
Encode::_utf8_off( $body ); |
208 |
|
|
|
$Rester->put_page( $name, { content => $body, date => $date }); |
|
209 |
print "$name $date\n"; |
print "$name $date\n"; |
210 |
|
|
211 |
|
# original markup |
212 |
|
$Rester->put_page( $name, { content => $p->{original}, date => $date }); |
213 |
|
|
214 |
foreach ( @tags ) { |
foreach ( @tags ) { |
215 |
$Rester->put_pagetag( $name, $_ ); |
$Rester->put_pagetag( $name, $_, { date => $date } ); |
216 |
print "+ tag $_\n"; |
print "+ tag $_\n"; |
217 |
} |
} |
218 |
|
|
225 |
} |
} |
226 |
} |
} |
227 |
|
|
228 |
|
# converted page |
229 |
|
$Rester->put_page( $name, { content => $body, date => $date }); |
230 |
|
|
231 |
} |
} |
232 |
|
|