瀏覽代碼

Fix merge conflicts

William Duyck 12 年之前
父節點
當前提交
dae502c2c1
共有 1 個文件被更改,包括 7 次插入2 次删除
  1. 7 2
      lib/pico.php

+ 7 - 2
lib/pico.php

@@ -216,7 +216,12 @@ class Pico {
 				unset($pages[$key]);
 				continue;
 			}
-			
+
+			// Ignore Emacs (and Nano) temp files
+			if (in_array(substr($page, -1), array('~','#'))) {
+				unset($pages[$key]);
+				continue;
+			}			
 			// Get title and format $page
 			$page_content = file_get_contents($page);
 			$page_meta = $this->read_file_meta($page_content);
@@ -335,4 +340,4 @@ class Pico {
 
 }
 
-// End of file
+// End of file