Vincent Cadet : link to previous version from release notes page
Module: website Branch: master Commit: ee7fbd9a71d389558a5b4b3ffd6bae1b3621a38c URL: http://source.winehq.org/git/website.git/?a=commit;h=ee7fbd9a71d389558a5b4b3... Author: Vincent Cadet <v_cadet(a)yahoo.fr> Date: Thu Sep 2 15:49:00 2010 -0500 link to previous version from release notes page --- include/plugins/announce.php | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/include/plugins/announce.php b/include/plugins/announce.php index 693db8d..8f6df00 100644 --- a/include/plugins/announce.php +++ b/include/plugins/announce.php @@ -4,6 +4,7 @@ WineHQ Website Announce plugin (grabs latest announce from git) by Jeremy Newman <jnewman(a)codeweavers.com> + Vince C. <v_cadet(a)yahoo.fr> (back-reference in 'changes' section) */ // import global objects @@ -26,7 +27,12 @@ if ($arr = file($announce)) if (ereg("^--------------------", $arr[$c])) $in_header = 0; else if (ereg("^Bugs fixed", $arr[$c])) $in_bugs = 1; - else if (ereg("^Changes since", $arr[$c])) $in_bugs = 0; + else if (ereg("^Changes since", $arr[$c])) + { + // Link to previous versions in changes + $in_bugs = 0; + $arr[$c] = ereg_replace( '[[:digit:].]+', '<a title="Changes since \\0" href="./\\0">\\0</a>', $arr[$c] ); + } if ($in_header) {
participants (1)
-
Jeremy Newman