appdb/include downloadurl.php

WineHQ wineowner at wine.codeweavers.com
Sun Jan 7 14:50:12 CST 2007


ChangeSet ID:	30866
CVSROOT:	/opt/cvs-commit
Module name:	appdb
Changes by:	wineowner at winehq.org	2007/01/07 14:50:12

Modified files:
	include        : downloadurl.php 

Log message:
	Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
	Fixes for download URL mails

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

Old revision  New revision  Changes     Path
 1.3           1.4           +5 -4       appdb/include/downloadurl.php

Index: appdb/include/downloadurl.php
diff -u -p appdb/include/downloadurl.php:1.3 appdb/include/downloadurl.php:1.4
--- appdb/include/downloadurl.php:1.3	7 Jan 2007 20:50:12 -0000
+++ appdb/include/downloadurl.php	7 Jan 2007 20:50:12 -0000
@@ -163,7 +163,7 @@ class downloadurl
 
                     $sWhatChangedModify .= "Modified\nOld URL: $oRow->url\nOld ".
                         "Description: $oRow->description\nNew URL: ".
-                        $aValues["sUrl$oRow->id"]." New Description: ".
+                        $aValues["sUrl$oRow->id"]."\nNew Description: ".
                         $aValues["sDescription$oRow->id"]."\n\n";
                 }
             }
@@ -187,12 +187,13 @@ class downloadurl
         $sWhatChanged .= "$sWhatChangedRemove$sWhatChangedModify";
 
         if($sWhatChanged && $sEmail =
-           User::get_notify_email_address_list($aValues['iAppId']))
+           User::get_notify_email_address_list($aValues['iVersionId']))
         {
             $oApp = new Application($aValues["iAppId"]);
+            $oVersion = new Version($aValues["iVersionId"]);
 
-            $sSubject = "Download URLs for $oApp->sName updated by ". 
-                        $_SESSION['current']->sRealname;
+            $sSubject = "Download URLs for $oApp->sName $oVersion->sName".
+            " updated by ".$_SESSION['current']->sRealname;
 
             $sMsg = APPDB_ROOT."appview.php?iVersionId=".$aValues['iVersionId'];
             $sMsg .= "\n\n";



More information about the wine-cvs mailing list