UI
authorivan <ivan>
Sun, 6 Jun 2010 06:21:47 +0000 (06:21 +0000)
committerivan <ivan>
Sun, 6 Jun 2010 06:21:47 +0000 (06:21 +0000)
FS/FS/Mason.pm
httemplate/config/config-process.cgi

index 8b83f0a..150a6c0 100644 (file)
@@ -355,6 +355,11 @@ if ( -e $addl_handler_use_file ) {
     $m->comp('/elements/errorpage.html', @_);
   }
 
+  sub errorpage_popup {
+    use vars qw($m);
+    $m->comp('/elements/errorpage-popup.html', @_);
+  }
+
   sub redirect {
     my( $location ) = @_;
     use vars qw($m);
index c96f8d4..31dce42 100644 (file)
@@ -80,7 +80,7 @@ if ( $conf->exists('disable_settings_changes') ) {
   my @changers = split(/\s*,\s*/, $conf->config('disable_settings_changes'));
   my %changers = map { $_=>1 } @changers;
   unless ( $changers{$curuser->username} ) {
-    errorpage("Disabled in web demo");
+    include('/elements/errorpage-popup.html', "Disabled in web demo");
     die "shouldn't be reached";
   }
 }