Jeremy Newman : use url var so local url can work

Jeremy Newman jnewman at winehq.org
Tue Sep 21 11:45:53 CDT 2021


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

Author: Jeremy Newman <jnewman at codeweavers.com>
Date:   Tue Sep 21 11:45:30 2021 -0500

use url var so local url can work

---

 include/screenshot.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/screenshot.php b/include/screenshot.php
index 9102aa0..ecdd6bd 100644
--- a/include/screenshot.php
+++ b/include/screenshot.php
@@ -564,8 +564,8 @@ class screenshot
         else
             $url = APPDB_ROOT."data/";
         $this->sDescription = preg_replace('/\n/', '', $this->sDescription);
-        return "<div class=\"whq-shot\"><img src=\"".APPDB_SCREENSHOT_URL."thumbnails/".$this->iScreenshotId."\" style=\"width:130px;\" ".
-               "alt=\"{$this->sDescription}\" data-shot=\"".APPDB_SCREENSHOT_URL.$this->iScreenshotId."\"><i class=\"fa fa-search-plus\"></i></div>\n";
+        return "<div class=\"whq-shot\"><img src=\"".$url."thumbnails/".$this->iScreenshotId."\" style=\"width:130px;\" ".
+               "alt=\"{$this->sDescription}\" data-shot=\"".$url.$this->iScreenshotId."\"><i class=\"fa fa-search-plus\"></i></div>\n";
     }
 
     public static function objectGetItemsPerPage($sState = 'accepted')




More information about the wine-cvs mailing list