• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

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

Commit MetaInfo

修订版2f903cec3910778a0e384e8724ce782bf1106064 (tree)
时间2017-10-30 01:19:33
作者umorigu <umorigu@gmai...>
Commiterumorigu

Log Message

BugTrack/2295 Remove useless implementation in make_link.php

更改概述

差异

--- a/lib/make_link.php
+++ b/lib/make_link.php
@@ -324,10 +324,8 @@ EOD;
324324 } else {
325325 $script = get_page_uri($page);
326326 }
327-
328327 $id = ++$note_id;
329328 $note = make_link($body);
330- $page = isset($vars['page']) ? rawurlencode($vars['page']) : '';
331329
332330 // Footnote
333331 $foot_explain[$id] = '<a id="notefoot_' . $id . '" href="' .
@@ -342,7 +340,7 @@ EOD;
342340 $title = strip_tags($note);
343341 $count = mb_strlen($title, SOURCE_ENCODING);
344342 $title = mb_substr($title, 0, PKWK_FOOTNOTE_TITLE_MAX, SOURCE_ENCODING);
345- $abbr = (mb_strlen($title) < $count) ? '...' : '';
343+ $abbr = (PKWK_FOOTNOTE_TITLE_MAX < $count) ? '...' : '';
346344 $title = ' title="' . $title . $abbr . '"';
347345 }
348346 $name = '<a id="notetext_' . $id . '" href="' . $script .