• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

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

PukiWiki


コミットメタ情報

リビジョン5e3ad66315744e4397424deed65fa6ee570e8979 (tree)
日時2004-09-05 00:04:10
作者henoheno <henoheno>
コミッターhenoheno

ログメッセージ

BugTrack/676 No need to link itself, notifies where you just read

変更サマリ

差分

--- a/UPDATING.txt
+++ b/UPDATING.txt
@@ -1,5 +1,5 @@
11 PukiWiki UPDATING
2-$Id: UPDATING.txt,v 1.16 2004/09/04 06:07:33 henoheno Exp $
2+$Id: UPDATING.txt,v 1.17 2004/09/04 15:04:10 henoheno Exp $
33
44
55 互換性に関する記述
@@ -170,16 +170,20 @@ PukiWiki 1.4: PukiWiki 1.3.x
170170 - URIを一つ与えるだけで動作する (従来は引数が2つ必要)
171171 - 3つ目の引数に 'clear' を与えると、画像と同時に回り込みを解除
172172 するコードを挿入する
173+ menuプラグイン:
174+ - メニューバーを表示しているときはメニューを表示しない(BugTrack/670)
175+ paintプラグイン:
176+ - 出力するデータの修正: #img(,clear) の代わりに #clear を使う
177+ popularプラグイン:
178+ - 現在読んでいるページへはリンクされない (BugTrack/676)
179+ recentプラグイン:
180+ - 現在読んでいるページへはリンクされない (BugTrack/676)
173181 refプラグイン:
174182 - 'ref(filename,pagename)' という古い記法で指定した(はずの)添付
175183 ファイルが見つからない場合、従来の様に "file not found" と
176184 表示する代わりに、あいまいさの無い新しい記法
177185 'ref(pagename/filename)' の利用を促すメッセージを表示する
178186 (開発日記/2004-08-26)
179- paintプラグイン:
180- - 出力するデータの修正: #img(,clear) の代わりに #clear を使う
181- menuプラグイン:
182- - メニューバーを表示しているときはメニューを表示しない(BugTrack/670)
183187
184188 コードの可読性を高めるための修正
185189 開発日記/2004-07-18 内部関数名の変更: sanitize() => input_filter()
--- a/plugin/popular.inc.php
+++ b/plugin/popular.inc.php
@@ -2,7 +2,7 @@
22 /////////////////////////////////////////////////
33 // PukiWiki - Yet another WikiWikiWeb clone.
44 //
5-// $Id: popular.inc.php,v 1.10 2004/09/04 14:53:13 henoheno Exp $
5+// $Id: popular.inc.php,v 1.11 2004/09/04 15:00:56 henoheno Exp $
66 //
77
88 /*
@@ -27,7 +27,7 @@
2727
2828 function plugin_popular_convert()
2929 {
30- global $whatsnew, $non_list;
30+ global $vars, $whatsnew, $non_list;
3131 global $_popular_plugin_frame, $_popular_plugin_today_frame;
3232
3333 $max = 10;
@@ -74,7 +74,13 @@ function plugin_popular_convert()
7474 $page = substr($page, 1);
7575
7676 $s_page = htmlspecialchars($page);
77- $items .= ' <li>' . make_pagelink($page, "$s_page<span class=\"counter\">($count)</span>") . "</li>\n";
77+ if ($page == $vars['page']) {
78+ // No need to link itself, notifies where you just read
79+ $pg_passage = get_pg_passage($page,FALSE);
80+ $items .= " <li><span title=\"$s_page $pg_passage\">$s_page<span class=\"counter\">($count)</span></span></li>\n";
81+ } else {
82+ $items .= ' <li>' . make_pagelink($page, "$s_page<span class=\"counter\">($count)</span>") . "</li>\n";
83+ }
7884 }
7985 $items .= "</ul>\n";
8086 }