Changeset 1632
- Timestamp:
- 1/22/2010 12:35:08 AM (3 years ago)
- File:
-
- 1 edited
-
trunk/website/scripts/downloads.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/website/scripts/downloads.php
r1631 r1632 22 22 23 23 if (preg_match('/http(s{0,1}):\/\/(.*)/', $this->Link)) 24 { 24 25 header('location: ' . $this->Link); 26 } 25 27 else if (substr($this->Link, 0, 1) == '?') 26 Download::DownloadFile(substr($this->Link, 1)); 28 { 29 //Get a name to call the file. 30 $pathInfo = pathinfo(substr($this->Link, 1)); 31 Download::DownloadFile(substr($this->Link, 1), 32 sprintf('%s.%s', $this->Name, $pathInfo['extension'])); 33 } 27 34 else 35 { 28 36 throw new Exception('Unknown download link'); 37 } 29 38 } 30 39
Note: See TracChangeset
for help on using the changeset viewer.
