• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisioncef9b6740a91d30b23076e75d34760c5d5bb57c3 (tree)
Time2014-11-26 02:39:07
Authorhenoheno <henoheno>
Commiterumorigu

Log Message

BugTrack2/235: Clear the sort_flag

Change Summary

Incremental Difference

--- a/lib/file.php
+++ b/lib/file.php
@@ -654,7 +654,7 @@ function get_readings()
654654
655655 if($unknownPage || $deletedPage) {
656656
657- asort($readings); // Sort by pronouncing(alphabetical/reading) order
657+ asort($readings, SORT_STRING); // Sort by pronouncing(alphabetical/reading) order
658658 $body = '';
659659 foreach ($readings as $page => $reading)
660660 $body .= '-[[' . $page . ']] ' . $reading . "\n";
--- a/lib/html.php
+++ b/lib/html.php
@@ -276,9 +276,9 @@ function make_related($page, $tag = '')
276276 $links = links_get_related($page);
277277
278278 if ($tag) {
279- ksort($links, SORT_STRING);
279+ ksort($links, SORT_STRING); // Page name, alphabetical order
280280 } else {
281- arsort($links);
281+ arsort($links, SORT_NUMERIC); // Last modified date, newer
282282 }
283283
284284 $_links = array();
--- a/plugin/attach.inc.php
+++ b/plugin/attach.inc.php
@@ -755,7 +755,7 @@ class AttachFiles
755755
756756 $ret = '';
757757 $files = array_keys($this->files);
758- sort($files);
758+ sort($files, SORT_STRING);
759759
760760 foreach ($files as $file) {
761761 $_files = array();
--- a/plugin/calendar_viewer.inc.php
+++ b/plugin/calendar_viewer.inc.php
@@ -149,9 +149,9 @@ function plugin_calendar_viewer_convert()
149149 closedir($dir);
150150
151151 if ($mode == 'past') {
152- rsort($pagelist); // New => Old
152+ rsort($pagelist, SORT_STRING); // New => Old
153153 } else {
154- sort($pagelist); // Old => New
154+ sort($pagelist, SORT_STRING); // Old => New
155155 }
156156
157157 // Include start
--- a/plugin/dump.inc.php
+++ b/plugin/dump.inc.php
@@ -1,5 +1,5 @@
11 <?php
2-// $Id: dump.inc.php,v 1.37 2006/01/12 01:01:35 teanan Exp $
2+// $Id: dump.inc.php,v 1.38 2007/05/12 09:17:14 henoheno Exp $
33 //
44 // Remote dump / restore plugin
55 // Originated as tarfile.inc.php by teanan / Interfair Laboratory 2004.
@@ -393,7 +393,7 @@ class tarlib
393393 }
394394 closedir($dp);
395395
396- sort($files);
396+ sort($files, SORT_STRING);
397397
398398 $matches = array();
399399 foreach($files as $name)
--- a/plugin/map.inc.php
+++ b/plugin/map.inc.php
@@ -53,7 +53,7 @@ function plugin_map_action()
5353
5454 if ($reverse) {
5555 $keys = array_keys($nodes);
56- sort($keys);
56+ sort($keys, SORT_STRING);
5757 $alone = array();
5858 $retval['body'] .= '<ul>' . "\n";
5959 foreach ($keys as $page) {
@@ -78,7 +78,7 @@ function plugin_map_action()
7878 $retval['body'] .= '<hr />' . "\n" .
7979 '<p>Not related from ' . htmlsc($refer) . '</p>' . "\n";
8080 $keys = array_keys($nodes);
81- sort($keys);
81+ sort($keys, SORT_STRING);
8282 $retval['body'] .= '<ul>' . "\n";
8383 foreach ($keys as $page) {
8484 if (! $nodes[$page]->done) {
@@ -142,7 +142,7 @@ class MapNode
142142 $refs[] = $ref[0];
143143 }
144144 $this->hide($refs);
145- sort($refs);
145+ sort($refs, SORT_STRING);
146146 }
147147 return $refs;
148148 }
@@ -155,7 +155,7 @@ class MapNode
155155 $data = file($file);
156156 $rels = explode("\t", trim($data[0]));
157157 $this->hide($rels);
158- sort($rels);
158+ sort($rels, SORT_STRING);
159159 }
160160 return $rels;
161161 }
--- a/plugin/rename.inc.php
+++ b/plugin/rename.inc.php
@@ -166,7 +166,7 @@ $msg
166166 EOD;
167167 if (! empty($related)) {
168168 $ret['body'] .= '<hr /><p>' . $_rename_messages['msg_related'] . '</p><ul>';
169- sort($related);
169+ sort($related, SORT_STRING);
170170 foreach ($related as $name)
171171 $ret['body'] .= '<li>' . make_pagelink($name) . '</li>';
172172 $ret['body'] .= '</ul>';