common: drop obsolete page attribute 'rawstyle'
[sheet.git] / common.inc.plp
index 963b8a6d1f4a8ef33a7685326c91ed8ae6163862..0f79b839822419c3ceb6ec873e0f25d6d96ff07b 100644 (file)
@@ -10,6 +10,11 @@ use File::stat 'stat';
 use HTTP::Date;
 use Shiar_Sheet::KeySigns qw(%sign);
 
+$PLP::ERROR = sub {
+       my ($text, $html) = @_;
+       print '<p class="error"><strong>Fatal error</strong>: '.$html."</p>\n\n";
+};
+
 our $style;
 our $showkeys = !exists $get{keys} ? undef :
        ($get{keys} ne '0' && ($get{keys} || 'always'));
@@ -85,7 +90,7 @@ sub Html {
        # flatten arrays
        ref $_ eq 'ARRAY' and $_ = join ' ',  @$_ for $meta->{description};
        ref $_ eq 'ARRAY' and $_ = join ', ', @$_ for $meta->{keywords};
-       ref $_ eq 'ARRAY' and $_ = join "\n", @$_ for $meta->{rawstyle}, $meta->{raw};
+       ref $_ eq 'ARRAY' and $_ = join "\n", @$_ for $meta->{raw};
        ref $_ eq 'ARRAY' and $_ = stylesheet(@$_)."\n" for $meta->{stylesheet};
 
        # other vars