Browse Source

Merge 2e26edaa13159f57fb61ab38ae12b2f8e7c92ecb into 014a4df61f9fbc1e3fe13e7ed2a6c4112ea4b795

cmattoon 12 years ago
parent
commit
e35130eea5
1 changed files with 6 additions and 1 deletions
  1. 6 1
      lib/pico.php

+ 6 - 1
lib/pico.php

@@ -221,7 +221,12 @@ class Pico {
 				unset($pages[$key]);
 				unset($pages[$key]);
 				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);