修订版 | 2f903cec3910778a0e384e8724ce782bf1106064 (tree) |
---|---|
时间 | 2017-10-30 01:19:33 |
作者 | umorigu <umorigu@gmai...> |
Commiter | umorigu |
BugTrack/2295 Remove useless implementation in make_link.php
@@ -324,10 +324,8 @@ EOD; | ||
324 | 324 | } else { |
325 | 325 | $script = get_page_uri($page); |
326 | 326 | } |
327 | - | |
328 | 327 | $id = ++$note_id; |
329 | 328 | $note = make_link($body); |
330 | - $page = isset($vars['page']) ? rawurlencode($vars['page']) : ''; | |
331 | 329 | |
332 | 330 | // Footnote |
333 | 331 | $foot_explain[$id] = '<a id="notefoot_' . $id . '" href="' . |
@@ -342,7 +340,7 @@ EOD; | ||
342 | 340 | $title = strip_tags($note); |
343 | 341 | $count = mb_strlen($title, SOURCE_ENCODING); |
344 | 342 | $title = mb_substr($title, 0, PKWK_FOOTNOTE_TITLE_MAX, SOURCE_ENCODING); |
345 | - $abbr = (mb_strlen($title) < $count) ? '...' : ''; | |
343 | + $abbr = (PKWK_FOOTNOTE_TITLE_MAX < $count) ? '...' : ''; | |
346 | 344 | $title = ' title="' . $title . $abbr . '"'; |
347 | 345 | } |
348 | 346 | $name = '<a id="notetext_' . $id . '" href="' . $script . |