nice going me, trying to be clever with regular expressions and failing

This commit is contained in:
Matthew Connelly 2015-03-09 02:37:05 +00:00
parent c2001a71ef
commit 73a2b40239
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ sub do_cache {
opendir PAGES, "$basedir/pages/" or die "Couldn't open pages directory $basedir/pages/";
while(readdir PAGES) {
next unless /\.md$/;
warn "Error reading page $_\n" and next unless readpage("$basedir/pages/$_",2);
warn "Error reading page $_\n" and next unless readpost("$basedir/pages/$_",2);
}
closedir PAGES;