]> sipb.mit.edu Git - ikiwiki.git/commitdiff
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
authorJoey Hess <joey@gnu.kitenet.net>
Sun, 16 Aug 2009 17:48:33 +0000 (13:48 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Sun, 16 Aug 2009 17:48:33 +0000 (13:48 -0400)
IkiWiki.pm
IkiWiki/Plugin/inline.pm

index b47da966ed548f03a1ca2c03031fcd8cc084be15..43ffb1fd8362802dc19f06074437e1f0a4c87f27 100644 (file)
@@ -1255,9 +1255,10 @@ sub preprocess ($$$;$$) {
                                        );
                                };
                                if ($@) {
-                                       chomp $@;
+                                       my $error=$@;
+                                       chomp $error;
                                        $ret="[[!$command <span class=\"error\">".
-                                               gettext("Error").": $@"."</span>]]";
+                                               gettext("Error").": $error"."</span>]]";
                                }
                        }
                        else {
@@ -2055,7 +2056,7 @@ sub match_created_before ($$;@) {
                }
        }
        else {
-               return IkiWiki::FailReason->new("$testpage has no ctime");
+               return IkiWiki::ErrorReason->new("$testpage does not exist");
        }
 }
 
@@ -2075,7 +2076,7 @@ sub match_created_after ($$;@) {
                }
        }
        else {
-               return IkiWiki::FailReason->new("$testpage has no ctime");
+               return IkiWiki::ErrorReason->new("$testpage does not exist");
        }
 }
 
index 704fa711d543947f6bddb2a9f6538bb2798c70b6..3a2f4b7bc37caa0d52113ec30ddbcbc310314a82 100644 (file)
@@ -254,7 +254,7 @@ sub preprocess_inline (@) {
        add_depends($params{page}, join(" or ", $#list >= $#feedlist ? @list : @feedlist));
        
        if ($feeds && exists $params{feedpages}) {
-               @feedlist=grep { pagespec_match($_, $params{feedpages}, location => $params{page}) } @feedlist;
+               @feedlist=pagespec_match_list(\@feedlist, $params{feedpages}, location => $params{page});
        }
 
        my ($feedbase, $feednum);