inline: Display a message if the 'pages' parameter is missing, before it just expande...
authorJoey Hess <joey@kodama.kitenet.net>
Thu, 15 May 2008 21:22:54 +0000 (17:22 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Thu, 15 May 2008 21:22:54 +0000 (17:22 -0400)
IkiWiki/Plugin/inline.pm
debian/changelog

index d7117b6117a2c8407b8c551eedd77afcc06d59f4..1fbd8b69c98ba05c0a3cca3b8d2c0331870ed292 100644 (file)
@@ -102,7 +102,7 @@ sub preprocess_inline (@) { #{{{
        my %params=@_;
        
        if (! exists $params{pages}) {
-               return "";
+               return "[[inline ".gettext("missing pages parameter")."]]";
        }
        my $raw=yesno($params{raw});
        my $archive=yesno($params{archive});
index c5b46f367d58e414a9afa43f911527b8269ac777..ca916bcd3fcac95c47d13739e69f3ff4a08dd9cc 100644 (file)
@@ -7,6 +7,8 @@ ikiwiki (2.47) UNRELEASED; urgency=low
     a cgi.
   * orphans: As a special case, the toplevel index page is never considered
     an orphaned page.
+  * inline: Display a message if the 'pages' parameter is missing, before
+    it just expanded to nothing.
 
  -- Joey Hess <joeyh@debian.org>  Tue, 13 May 2008 12:30:18 -0400