Hi peoople.

A couple of months ago, I submitted a patch I wrote to add a backlink to the 
previous version in WineHQ announcement page. As it has still no been applied I 
am sending it again here. It actually adds a few (6) lines of PHP code to the 
web site's template, include/plugins/announce.php .

I ahve also submitted this patch into WineHQ bugzilla ( 
http://bugs.winehq.org/show_bug.cgi?id=19355 ). May I ask for comments about 
this patch?

Thanks a lot in advance,
Vince C.


      
--- old/include/plugins/announce.php    2009-10-26 16:08:56.406294981 +0100
+++ new/include/plugins/announce.php    2009-10-26 16:03:49.861048594 +0100
@@ -4,6 +4,7 @@
     WineHQ Website
     Announce plugin (grabs latest announce from git)
     by Jeremy Newman <[email protected]>
+       Vince C. <[email protected]> (back-reference in 'changes' section)
 */
 
 // import global objects
@@ -26,7 +27,12 @@
 
         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)
         {


Reply via email to