瀏覽代碼

Update pico.php

Fixes an issue wherein the alphabetical sorting of pages did not happen, because array key was not, in fact, the page's filename.
sergeweyland 11 年之前
父節點
當前提交
aea6779195
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/pico.php

+ 1 - 1
lib/pico.php

@@ -256,7 +256,7 @@ class Pico {
 				$sorted_pages[$page_meta['date'].$date_id] = $data;
 				$date_id++;
 			}
-			else $sorted_pages[] = $data;
+			else $sorted_pages[$page] = $data;
 		}
 		
 		if($order == 'desc') krsort($sorted_pages);