Changeset 1645
- Timestamp:
- 1/22/2010 7:00:22 AM (3 years ago)
- File:
-
- 1 edited
-
trunk/website/scripts/downloads.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/website/scripts/downloads.php
r1632 r1645 217 217 //Find the binary that users will get to download. 218 218 $installerPath = null; 219 $installerSize = 0; 219 220 220 221 //If $buildPath is a directory, it contains the installer. … … 232 233 { 233 234 $installerPath = sprintf('builds/%s/r%s/%s', $branch, $revision, $file); 235 $installerSize = filesize($filePath); 234 236 break; 235 237 } … … 241 243 { 242 244 $installerPath = sprintf('builds/%s/r%s', $branch, basename($buildPath)); 245 $installerSize = filesize($buildPath); 243 246 } 244 247 … … 255 258 \'%1$s r%2$d\', \'%4$s\' , \'build\', \'r%2$d\', 1, \'any\', %3$d, \'?%5$s\' 256 259 )', 257 mysql_real_escape_string($branch), intval($revision), filesize($installerPath),260 mysql_real_escape_string($branch), intval($revision), $installerSize, 258 261 PhpToMySqlTimestamp(filemtime($buildPath)), mysql_real_escape_string($installerPath))) 259 262 or die(mysql_error());
Note: See TracChangeset
for help on using the changeset viewer.
