Remove .tmp extension from thumbnail and explain database structure change
This commit is contained in:
parent
b721aac519
commit
ed0dc56093
|
@ -9,7 +9,7 @@ TinyIB - A Lightweight and Efficient [Image Board](http://en.wikipedia.org/wiki/
|
|||
|
||||
For demos see the [TinyIB Installations](https://github.com/tslocum/TinyIB/wiki) page.
|
||||
|
||||
**Note to those who have recently upgraded:** Are you unable to create new posts? Run the SQL on [this page](https://github.com/tslocum/TinyIB/wiki/NewSQLStructure) to finish the upgrade process.
|
||||
**Database structure was last modified on *7th Aug 2015*.** Are you unable to create new posts? Run the SQL on [this page](https://github.com/tslocum/TinyIB/wiki/NewSQLStructure) to finish the upgrade process.
|
||||
|
||||
Features
|
||||
------------
|
||||
|
|
|
@ -101,7 +101,7 @@ if (isset($_POST['message']) || isset($_POST['file'])) {
|
|||
}
|
||||
|
||||
$post['file_hex'] = $service;
|
||||
$temp_file = time() . substr(microtime(), 2, 3) . '.tmp';
|
||||
$temp_file = time() . substr(microtime(), 2, 3);
|
||||
$file_location = "thumb/" . $temp_file;
|
||||
file_put_contents($file_location, file_get_contents($embed['thumbnail_url']));
|
||||
|
||||
|
|
Loading…
Reference in New Issue