• R/O
  • SSH
  • HTTPS

pukibook: コミット


コミットメタ情報

リビジョン6 (tree)
日時2009-03-22 13:00:52
作者lunt

ログメッセージ

orphans.inc.phpをmonobookから移動

変更サマリ

差分

--- other/trunk/orphans.inc.php (nonexistent)
+++ other/trunk/orphans.inc.php (revision 6)
@@ -0,0 +1,25 @@
1+<?php
2+/**
3+ * @author lunt
4+ * @license http://www.gnu.org/licenses/gpl.html GPL 2 or later
5+ * @version $Id$
6+ */
7+
8+function plugin_orphans_init()
9+{
10+ $messages['_orphans_messages'] = array(
11+ 'title' => '孤立しているページ',
12+ );
13+ set_plugin_messages($messages);
14+}
15+
16+function plugin_orphans_action()
17+{
18+ global $non_list, $_orphans_messages;
19+
20+ $pages = array_diff(get_existpages(), get_existpages(CACHE_DIR, '.ref'));
21+ $pages = preg_grep('/' . $non_list . '/S', $pages, PREG_GREP_INVERT);
22+
23+ return array('msg' => $_orphans_messages['title'], 'body' => page_list($pages));
24+}
25+?>
Added: svn:keywords
## -0,0 +1 ##
+Id Date Author Revision
\ No newline at end of property
--- monobook/trunk/plugin/orphans.inc.php (revision 5)
+++ monobook/trunk/plugin/orphans.inc.php (nonexistent)
@@ -1,25 +0,0 @@
1-<?php
2-/**
3- * @author lunt
4- * @license http://www.gnu.org/licenses/gpl.html GPL 2 or later
5- * @version $Id$
6- */
7-
8-function plugin_orphans_init()
9-{
10- $messages['_orphans_messages'] = array(
11- 'title' => '孤立しているページ',
12- );
13- set_plugin_messages($messages);
14-}
15-
16-function plugin_orphans_action()
17-{
18- global $non_list, $_orphans_messages;
19-
20- $pages = array_diff(get_existpages(), get_existpages(CACHE_DIR, '.ref'));
21- $pages = preg_grep('/' . $non_list . '/S', $pages, PREG_GREP_INVERT);
22-
23- return array('msg' => $_orphans_messages['title'], 'body' => page_list($pages));
24-}
25-?>
Deleted: svn:keywords
## -1 +0,0 ##
-Id Date Author Revision
\ No newline at end of property
旧リポジトリブラウザで表示