nice going me, trying to be clever with regular expressions and failing
This commit is contained in:
parent
c2001a71ef
commit
73a2b40239
2
blogalba
2
blogalba
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue