Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

merged changes 1.8 vs 1.9

  • Loading branch information...
commit 1194e5ea2662761d533253a25fa056a6112cc207 1 parent 0f8733d
@racke racke authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 dist/lib/UI/pages/admin/page_save.html
View
6 dist/lib/UI/pages/admin/page_save.html
@@ -64,7 +64,7 @@
}
my $page = $Tag->filter('filesafe', $CGI->{ui_page});
if( ! $page) {
- $Scratch->{ui_error} = errmsg("No page name given.");
+ $Scratch->{ui_error} = 'No page name given.';
$Tag->bounce('__UI_BASE__/error');
return;
}
@@ -81,7 +81,9 @@
$contents =~ s/^<!--\s+begin\s+content\s+-->\n?//i;
$contents =~ s/<!--\s+end\s+content\s+-->\n*$//i;
$contents =~ s/\r//g;
- $Tag->write_relative_file($page, $contents);
+ unless ($Tag->write_relative_file($page, $contents)) {
+ $Scratch->{ui_error} = "Couldn't save page $page.";
+ }
$Scratch->{ui_output_page} = $page;
return;
[/perl]
Please sign in to comment.
Something went wrong with that request. Please try again.