Alexander Nicolaysen Sørnes : screenshot : Link to the actual image in notification mails

Alexander Nicolaysen Sørnes asornes at winehq.org
Wed Jul 22 15:06:39 CDT 2009


Module: appdb
Branch: master
Commit: bd7081ebb457dcba46782cbe085c0d78379df8e7
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=bd7081ebb457dcba46782cbe085c0d78379df8e7

Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date:   Wed Jul 22 22:06:14 2009 +0200

screenshot: Link to the actual image in notification mails

---

 include/screenshot.php |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/include/screenshot.php b/include/screenshot.php
index e4ecf4b..e906899 100644
--- a/include/screenshot.php
+++ b/include/screenshot.php
@@ -406,7 +406,12 @@ class screenshot
     {
         $oVersion = new version($this->iVersionId);
         $sAppName = version::fullName($this->iVersionId);
-        $sMsg = $oVersion->objectMakeUrl()."\n";
+
+        if(!$bDeleted)
+            $sMsg = $this->objectMakeUrl()."\n";
+        else
+            $sMsg = $oVersion->objectMakeUrl()."\n";
+
         if(!$bDeleted)
         {
             if(!$this->bQueued)
@@ -771,8 +776,7 @@ class screenshot
 
     function objectMakeUrl()
     {
-        /* STUB */
-        return TRUE;
+        return APPDB_ROOT."appimage.php?iId={$this->iScreenshotId}";
     }
 
     function allowAnonymousSubmissions()




More information about the wine-cvs mailing list