修訂 | 4683d446b562736dce7a199dc9dd168f455fe168 (tree) |
---|---|
時間 | 2004-09-04 23:26:52 |
作者 | henoheno <henoheno> |
Commiter | henoheno |
BugTrack/676 No need to link itself, notifies where you just read
@@ -12,7 +12,7 @@ | ||
12 | 12 | * 2002.06.17: plugin_recent_init()を設定 |
13 | 13 | * 2002.07.02: <ul>による出力に変更し構造化 |
14 | 14 | * |
15 | - * $Id: recent.inc.php,v 1.12 2004/09/04 14:16:30 henoheno Exp $ | |
15 | + * $Id: recent.inc.php,v 1.13 2004/09/04 14:26:52 henoheno Exp $ | |
16 | 16 | */ |
17 | 17 | |
18 | 18 | // RecentChangesのキャッシュ |
@@ -20,7 +20,7 @@ define('PLUGIN_RECENT_CACHE', CACHE_DIR . 'recent.dat'); | ||
20 | 20 | |
21 | 21 | function plugin_recent_convert() |
22 | 22 | { |
23 | - global $script, $date_format; | |
23 | + global $script, $vars, $date_format; | |
24 | 24 | global $_recent_plugin_frame; |
25 | 25 | |
26 | 26 | if (! file_exists(PLUGIN_RECENT_CACHE)) return ''; |
@@ -48,7 +48,12 @@ function plugin_recent_convert() | ||
48 | 48 | $s_page = htmlspecialchars($page); |
49 | 49 | $r_page = rawurlencode($page); |
50 | 50 | $pg_passage = get_pg_passage($page, FALSE); |
51 | - $items .=" <li><a href=\"$script?$r_page\" title=\"$s_page $pg_passage\">$s_page</a></li>\n"; | |
51 | + if($page == $vars['page']) { | |
52 | + // No need to link itself, notifies where you just read | |
53 | + $items .= " <li><span title=\"$s_page $pg_passage\">$s_page</span></li>\n"; | |
54 | + } else { | |
55 | + $items .= " <li><a href=\"$script?$r_page\" title=\"$s_page $pg_passage\">$s_page</a></li>\n"; | |
56 | + } | |
52 | 57 | } |
53 | 58 | if (! empty($lines)) $items .= "</ul>\n"; |
54 | 59 |