]> sipb.mit.edu Git - ikiwiki.git/commitdiff
downgrade missing shortcuts page error to warning
authorJoey Hess <joey@gnu.kitenet.net>
Sat, 14 Feb 2009 08:01:35 +0000 (03:01 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Sat, 14 Feb 2009 08:01:35 +0000 (03:01 -0500)
and response to bug report

IkiWiki/Plugin/shortcut.pm
doc/bugs/shortcut_plugin_will_not_work_without_shortcuts.mdwn.mdwn

index c1e6a7eb304e8ac84643a95b03e17684a8235a2d..5693ee7822f16bbca5bf45d93f7761450f8cd913 100644 (file)
@@ -28,10 +28,12 @@ sub checkconfig () {
                        $srcfile=srcfile("shortcuts.mdwn", 1);
                }
                if (! defined $srcfile) {
                        $srcfile=srcfile("shortcuts.mdwn", 1);
                }
                if (! defined $srcfile) {
-                       error(sprintf(gettext("shortcut plugin will not work without %s"),
-                               "shortcuts.".$config{default_pageext}));
+                       print STDERR sprintf(gettext("shortcut plugin will not work without %s"),
+                               "shortcuts.".$config{default_pageext})."\n";
+               }
+               else {
+                       IkiWiki::preprocess("shortcuts", "shortcuts", readfile($srcfile));
                }
                }
-               IkiWiki::preprocess("shortcuts", "shortcuts", readfile($srcfile));
        }
 }
 
        }
 }
 
index 994929bfcbb6237f675805ab2a03874908b6dcd4..85844132dd9dd78d17ea36cdf333d565f2e23d55 100644 (file)
@@ -6,3 +6,15 @@ On my initial ikiwiki -setup auto.setup, I get the following error:
 
 This is using the latest git pull of ikiwiki.
 I am not sure why it is not finding shortcuts.mdwn. -- [[JosephTurian]]
 
 This is using the latest git pull of ikiwiki.
 I am not sure why it is not finding shortcuts.mdwn. -- [[JosephTurian]]
+
+> The error, and the weird paths suggest to me that you
+> have installed ikiwiki in a strange way, and it is failing
+> to find its basewiki underlay. The `$installdir` is
+> hardcoded into IkiWiki.pm at build time, based on the PREFIX
+> setting (see README).
+> 
+> If that's not set right, you'll have other problems than just this one,
+> so I suggest you check how you installed ikiwiki.
+> 
+> Anyway, I've made the shortcut plugin only warn about this..
+> --[[Joey]]