# on it.
$oldcgi->param("editcontent",
renamepage_hook($dest, $src, $dest,
# on it.
$oldcgi->param("editcontent",
renamepage_hook($dest, $src, $dest,
# Get a new edit token; old was likely invalidated.
$oldcgi->param("rcsinfo",
# Get a new edit token; old was likely invalidated.
$oldcgi->param("rcsinfo",
- my ($form, $buttons)=rename_form($q, $session, Encode::decode_utf8($q->param("page")));
+ my ($form, $buttons)=rename_form($q, $session, Encode::decode_utf8(scalar $q->param("page")));
postrename($q, $session, $src);
}
elsif ($form->submitted eq 'Rename' && $form->validate) {
postrename($q, $session, $src);
}
elsif ($form->submitted eq 'Rename' && $form->validate) {
IkiWiki::Plugin::attachment::is_held_attachment($src);
if ($held) {
rename($held, IkiWiki::Plugin::attachment::attachment_holding_location($dest));
IkiWiki::Plugin::attachment::is_held_attachment($src);
if ($held) {
rename($held, IkiWiki::Plugin::attachment::attachment_holding_location($dest));
- postrename($q, $session, $src, $dest, $q->param("attachment"))
+ postrename($q, $session, $src, $dest, scalar $q->param("attachment"))
- postrename($q, $session, $src, $dest, $q->param("attachment"));
+ postrename($q, $session, $src, $dest, scalar $q->param("attachment"));
}
else {
IkiWiki::showform($form, $buttons, $session, $q);
}
else {
IkiWiki::showform($form, $buttons, $session, $q);