Revision | 3982177cb4734d77c8e5bcae20f3739424f041f2 (tree) |
---|---|
Time | 2014-11-26 02:27:34 |
Author | henoheno <henoheno> |
Commiter | umorigu |
BugTrack2/235: Clear the sort_flag: ksort()
@@ -388,7 +388,7 @@ function page_list($pages, $cmd = 'read', $withfilename = FALSE) | ||
388 | 388 | |
389 | 389 | $list[$head][$page] = $str; |
390 | 390 | } |
391 | - ksort($list); | |
391 | + ksort($list, SORT_STRING); | |
392 | 392 | |
393 | 393 | $cnt = 0; |
394 | 394 | $arr_index = array(); |
@@ -409,7 +409,7 @@ function page_list($pages, $cmd = 'read', $withfilename = FALSE) | ||
409 | 409 | '"><strong>' . $head . '</strong></a>' . "\n" . |
410 | 410 | ' <ul>' . "\n"; |
411 | 411 | } |
412 | - ksort($pages); | |
412 | + ksort($pages, SORT_STRING); | |
413 | 413 | $retval .= join("\n", $pages); |
414 | 414 | if ($list_index) |
415 | 415 | $retval .= "\n </ul>\n </li>\n"; |
@@ -187,7 +187,7 @@ function edit_form($page, $postdata, $digest = FALSE, $b_template = TRUE) | ||
187 | 187 | $pages[$_page] = ' <option value="' . $s_page . '">' . |
188 | 188 | $s_page . '</option>'; |
189 | 189 | } |
190 | - ksort($pages); | |
190 | + ksort($pages, SORT_STRING); | |
191 | 191 | $s_pages = join("\n", $pages); |
192 | 192 | $template = <<<EOD |
193 | 193 | <select name="template_page"> |
@@ -276,7 +276,7 @@ function make_related($page, $tag = '') | ||
276 | 276 | $links = links_get_related($page); |
277 | 277 | |
278 | 278 | if ($tag) { |
279 | - ksort($links); | |
279 | + ksort($links, SORT_STRING); | |
280 | 280 | } else { |
281 | 281 | arsort($links); |
282 | 282 | } |
@@ -27,7 +27,7 @@ define('PLUGIN_ATTACH_DELETE_ADMIN_ONLY', TRUE); // FALSE or TRUE | ||
27 | 27 | |
28 | 28 | // 管理者が添付ファイルを削除するときは、バックアップを作らない |
29 | 29 | // PLUGIN_ATTACH_DELETE_ADMIN_ONLY=TRUEのとき有効 |
30 | -define('PLUGIN_ATTACH_DELETE_ADMIN_NOBACKUP', TRUE); // FALSE or TRUE | |
30 | +define('PLUGIN_ATTACH_DELETE_ADMIN_NOBACKUP', FALSE); // FALSE or TRUE | |
31 | 31 | |
32 | 32 | // アップロード/削除時にパスワードを要求する(ADMIN_ONLYが優先) |
33 | 33 | define('PLUGIN_ATTACH_PASSWORD_REQUIRE', FALSE); // FALSE or TRUE |
@@ -765,7 +765,7 @@ class AttachFiles | ||
765 | 765 | if (! isset($_files[0])) { |
766 | 766 | $_files[0] = htmlsc($file); |
767 | 767 | } |
768 | - ksort($_files); | |
768 | + ksort($_files, SORT_NUMERIC); | |
769 | 769 | $_file = $_files[0]; |
770 | 770 | unset($_files[0]); |
771 | 771 | $ret .= " <li>$_file\n"; |
@@ -840,7 +840,7 @@ class AttachPages | ||
840 | 840 | $ret = ''; |
841 | 841 | |
842 | 842 | $pages = array_keys($this->pages); |
843 | - sort($pages); | |
843 | + sort($pages, SORT_STRING); | |
844 | 844 | |
845 | 845 | foreach ($pages as $page) { |
846 | 846 | if (check_non_list($page)) continue; |
@@ -42,7 +42,7 @@ function plugin_related_action() | ||
42 | 42 | $retval .= '<ul><li>No related pages found.</li></ul>' . "\n"; |
43 | 43 | } else { |
44 | 44 | // Show count($data)? |
45 | - ksort($data); | |
45 | + ksort($data, SORT_STRING); | |
46 | 46 | $retval .= '<ul>' . "\n"; |
47 | 47 | foreach ($data as $page=>$time) { |
48 | 48 | $r_page = rawurlencode($page); |
@@ -286,7 +286,7 @@ function plugin_rename_phase3($pages) | ||
286 | 286 | <p>{$_rename_messages['msg_confirm']}</p> |
287 | 287 | EOD; |
288 | 288 | |
289 | - ksort($pages); | |
289 | + ksort($pages, SORT_STRING); | |
290 | 290 | $ret['body'] .= '<ul>' . "\n"; |
291 | 291 | foreach ($pages as $old=>$new) |
292 | 292 | $ret['body'] .= '<li>' . make_pagelink(decode($old)) . |
@@ -413,7 +413,7 @@ function plugin_rename_getselecttag($page) | ||
413 | 413 | $pages[$_page] = '<option value="' . $s_page . '"' . $selected . '>' . |
414 | 414 | $s_page . '</option>'; |
415 | 415 | } |
416 | - ksort($pages); | |
416 | + ksort($pages, SORT_STRING); | |
417 | 417 | $list = join("\n" . ' ', $pages); |
418 | 418 | |
419 | 419 | return <<<EOD |
@@ -1,11 +1,12 @@ | ||
1 | 1 | <?php |
2 | -// $Id: versionlist.inc.php,v 1.15 2005/01/29 02:12:52 henoheno Exp $ | |
3 | -/* | |
4 | - * PukiWiki versionlist plugin | |
5 | - * | |
6 | - * CopyRight 2002 S.YOSHIMURA GPL2 | |
7 | - * http://masui.net/pukiwiki/ yosimura@excellence.ac.jp | |
8 | - */ | |
2 | +// PukiWiki - Yet another WikiWikiWeb clone | |
3 | +// $Id: versionlist.inc.php,v 1.17 2007/05/12 08:37:38 henoheno Exp $ | |
4 | +// Copyright (C) | |
5 | +// 2002-2006 PukiWiki Developers Team | |
6 | +// 2002 S.YOSHIMURA GPL2 yosimura@excellence.ac.jp | |
7 | +// License: GPL v2 | |
8 | +// | |
9 | +// Listing cvs revisions of files | |
9 | 10 | |
10 | 11 | function plugin_versionlist_action() |
11 | 12 | { |
@@ -59,7 +60,7 @@ function plugin_versionlist_convert() | ||
59 | 60 | { |
60 | 61 | return ''; |
61 | 62 | } |
62 | - ksort($comments); | |
63 | + ksort($comments, SORT_STRING); | |
63 | 64 | $retval = ''; |
64 | 65 | foreach ($comments as $comment) |
65 | 66 | { |