appdb/include maintainer.php

WineHQ wineowner at wine.codeweavers.com
Sat Dec 30 00:13:46 CST 2006


ChangeSet ID:	30840
CVSROOT:	/opt/cvs-commit
Module name:	appdb
Changes by:	wineowner at winehq.org	2006/12/30 00:13:46

Modified files:
	include        : maintainer.php 

Log message:
	Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
	Add a URL to the application/version and a few line breaks.

Patch: http://cvs.winehq.org/patch.py?id=30840

Old revision  New revision  Changes     Path
 1.21          1.22          +9 -3       appdb/include/maintainer.php

Index: appdb/include/maintainer.php
diff -u -p appdb/include/maintainer.php:1.21 appdb/include/maintainer.php:1.22
--- appdb/include/maintainer.php:1.21	30 Dec 2006  6:13:46 -0000
+++ appdb/include/maintainer.php	30 Dec 2006  6:13:46 -0000
@@ -82,13 +82,19 @@ class maintainer
                 $sEmail = $oUser->sEmail;
                 if ($sEmail)
                 {
+                    if($this->iVersionId)
+                        $sURL = APPDB_ROOT."appview.php?iVersionId=$this->iVersionId";
+                    else
+                        $sURL = APPDB_ROOT."appview.php?iAppId=$this->iAppId";
+
                     $sSubject =  "Application Maintainer Request Report";
-                    $sMsg  = "Your application to be the maintainer of ".$oApp->sName." ".$oVersion->sName." has been accepted. ";
-                    $sMsg .= $sReplyText;
+                    $sMsg  = "Your application to be the maintainer of ".$oApp->sName." ".$oVersion->sName." has been accepted.\n";
+                    $sMsg .= "$sURL\n";
+                    $sMsg .= "$sReplyText\n";
                     $sMsg .= "We appreciate your help in making the Application Database better for all users.\n\n";
 
                     mail_appdb($sEmail, $sSubject ,$sMsg);
-                }    
+                }
             }
         } else
         {



More information about the wine-cvs mailing list