OSDN Git Service

BugTrack/2474 Fix web browser no response on heavy DOM operations
[pukiwiki/pukiwiki.git] / lib / func.php
index 4d04fb3..18a6dfa 100644 (file)
@@ -538,7 +538,7 @@ function page_list($pages, $cmd = 'read', $withfilename = FALSE)
                $r_page  = pagename_urlencode($page);
                $s_page  = htmlsc($page, ENT_QUOTES);
                $str = '   <li><a href="' . $href . $r_page . '">' .
-                       $s_page . '</a>' . get_passage_html_span($page);
+                       $s_page . '</a> ' . get_pg_passage($page);
                if ($withfilename) {
                        $s_file = htmlsc($file);
                        $str .= "\n" . '    <ul><li>' . $s_file . '</li></ul>' .
@@ -563,7 +563,7 @@ function page_list($pages, $cmd = 'read', $withfilename = FALSE)
                }
                $list[$head][$page] = $str;
        }
-       uksort($pages, 'strnatcmp');
+       uksort($list, 'strnatcmp');
 
        $cnt = 0;
        $arr_index = array();