appdb/. appimage.php
WineHQ
wineowner at wine.codeweavers.com
Sat Jul 8 19:39:43 CDT 2006
ChangeSet ID: 26357
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner at winehq.org 2006/07/08 19:39:43
Modified files:
. : appimage.php
Log message:
Chris Morgan <cmorgan at alum.wpi.edu>
appimage should use the image sUrl instead of the iId when trying to stat() the file. We can't always be sure
that the iId will be the name of the file
Patch: http://cvs.winehq.org/patch.py?id=26357
Old revision New revision Changes Path
1.25 1.26 +4 -3 appdb/appimage.php
Index: appdb/appimage.php
diff -u -p appdb/appimage.php:1.25 appdb/appimage.php:1.26
--- appdb/appimage.php:1.25 9 Jul 2006 0:39:43 -0000
+++ appdb/appimage.php 9 Jul 2006 0:39:43 -0000
@@ -73,12 +73,13 @@ if ($aClean['sREQUEST_METHOD']='HEAD')
header("Expires: ");
header("Last-Modified: ".fHttpDate($iModTime));
}
+
$oScreenshot = new Screenshot($aClean['iId']);
-/* at this point, we know that .../screenshots/$id and
- * .../screenshots/thumbnails/$id both exist as normally
+/* at this point, we know that .../screenshots/$oScreenshot->sUrl and
+ * .../screenshots/thumbnails/$oScreenshot->sUrl both exist as normally
* they would both be created at the same time. */
-$fstat_val = stat(appdb_fullpath("data/screenshots/".$aClean['iId']));
+$fstat_val = stat(appdb_fullpath("data/screenshots/".$oScreenshot->sUrl));
$iModTime = $fstat_val['mtime'];
header("Cache-Control: public");
More information about the wine-cvs
mailing list