Merge pull request #61 from cmattoon/master
Modified Pico::get_pages() to ignore Emacs (~) and (#) temp files
This commit is contained in:
commit
69d67b2b71
@ -222,6 +222,11 @@ class Pico {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ignore Emacs (and Nano) temp files
|
||||||
|
if (in_array(substr($page, -1), array('~','#'))) {
|
||||||
|
unset($pages[$key]);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
// Get title and format $page
|
// Get title and format $page
|
||||||
$page_content = file_get_contents($page);
|
$page_content = file_get_contents($page);
|
||||||
$page_meta = $this->read_file_meta($page_content);
|
$page_meta = $this->read_file_meta($page_content);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user