• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

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

Commit MetaInfo

Revisão4683d446b562736dce7a199dc9dd168f455fe168 (tree)
Hora2004-09-04 23:26:52
Autorhenoheno <henoheno>
Commiterhenoheno

Mensagem de Log

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

Mudança Sumário

Diff

--- a/plugin/recent.inc.php
+++ b/plugin/recent.inc.php
@@ -12,7 +12,7 @@
1212 * 2002.06.17: plugin_recent_init()を設定
1313 * 2002.07.02: <ul>による出力に変更し構造化
1414 *
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 $
1616 */
1717
1818 // RecentChangesのキャッシュ
@@ -20,7 +20,7 @@ define('PLUGIN_RECENT_CACHE', CACHE_DIR . 'recent.dat');
2020
2121 function plugin_recent_convert()
2222 {
23- global $script, $date_format;
23+ global $script, $vars, $date_format;
2424 global $_recent_plugin_frame;
2525
2626 if (! file_exists(PLUGIN_RECENT_CACHE)) return '';
@@ -48,7 +48,12 @@ function plugin_recent_convert()
4848 $s_page = htmlspecialchars($page);
4949 $r_page = rawurlencode($page);
5050 $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+ }
5257 }
5358 if (! empty($lines)) $items .= "</ul>\n";
5459