• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

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

Commit MetaInfo

Révisione90ad60c89f0839e08a3441610fe7fbfb79163fa (tree)
l'heure2017-09-11 21:39:47
Auteurumorigu <umorigu@gmai...>
Commiterumorigu

Message de Log

BugTrack/2239 Show page canonical URL after commenting

Change Summary

Modification

--- a/plugin/comment.inc.php
+++ b/plugin/comment.inc.php
@@ -96,8 +96,9 @@ function plugin_comment_convert()
9696
9797 if (PKWK_READONLY) return ''; // Show nothing
9898
99- if (! isset($numbers[$vars['page']])) $numbers[$vars['page']] = 0;
100- $comment_no = $numbers[$vars['page']]++;
99+ $page = $vars['page'];
100+ if (! isset($numbers[$page])) $numbers[$page] = 0;
101+ $comment_no = $numbers[$page]++;
101102
102103 $options = func_num_args() ? func_get_args() : array();
103104 if (in_array('noname', $options)) {
@@ -114,8 +115,8 @@ function plugin_comment_convert()
114115 $above = in_array('above', $options) ? '1' :
115116 (in_array('below', $options) ? '0' : PLUGIN_COMMENT_DIRECTION_DEFAULT);
116117
117- $script = get_base_uri();
118- $s_page = htmlsc($vars['page']);
118+ $script = get_page_uri($page);
119+ $s_page = htmlsc($page);
119120 $string = <<<EOD
120121 <br />
121122 <form action="$script" method="post">