From 1d3380f6e67cd1dc03d3ef4c703ad3d4bc4535b1 Mon Sep 17 00:00:00 2001 From: henoheno Date: Sat, 22 Jan 2005 13:22:01 +0900 Subject: [PATCH] Enable to list DIFF_DIR. Japanese => English. Add comments about CACHE_DIR. Simplify. --- plugin/deleted.inc.php | 42 +++++++++++++++++++++++++++++------------- 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/plugin/deleted.inc.php b/plugin/deleted.inc.php index b799b9c..1b621e7 100644 --- a/plugin/deleted.inc.php +++ b/plugin/deleted.inc.php @@ -1,27 +1,43 @@ 'Deleted plugin', 'body'=>'No such setting: Choose backup or diff'); + + $deleted_pages = array_diff( + get_existpages($_DIR[$dir]['dir'], $_DIR[$dir]['ext']), + get_existpages()); + + if ($withfilename) { $retval['msg'] = $_deleted_plugin_title_withfilename; + } else { + $retval['msg'] = $_deleted_plugin_title; } - $backup_pages = get_existpages(BACKUP_DIR,BACKUP_EXT); - $exist_pages = get_existpages(); - $deleted_pages = array_diff($backup_pages,$exist_pages); - $retval['body'] = page_list($deleted_pages,'backup',$withfilename); + $retval['body'] = page_list($deleted_pages, $dir, $withfilename); return $retval; } -- 2.11.0