Permalink
Browse files

merged changes 1.8 vs 1.9

  • Loading branch information...
1 parent 0f8733d commit 1194e5ea2662761d533253a25fa056a6112cc207 @racke racke committed Apr 17, 2001
Showing with 4 additions and 2 deletions.
  1. +4 −2 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]

0 comments on commit 1194e5e

Please sign in to comment.