From bf8e73ca739d60a9c80acb007d794d0a80c3e5ac Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 22 Jan 2014 23:54:14 -0800 Subject: [PATCH 1/2] missing filename in uploaded photos (we don't really use this, but we will need to have a filename to export via DAV or API and the original filename would be the most likely choice). --- include/photo/photo_driver.php | 2 +- include/photos.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/photo/photo_driver.php b/include/photo/photo_driver.php index ff92e5a0f..c2eeafa54 100644 --- a/include/photo/photo_driver.php +++ b/include/photo/photo_driver.php @@ -357,7 +357,7 @@ abstract class photo_driver { dbesc($p['resource_id']), dbesc(datetime_convert()), dbesc(datetime_convert()), - dbesc(basename($filename)), + dbesc(basename($p['filename'])), dbesc($this->getType()), dbesc($p['album']), intval($this->getHeight()), diff --git a/include/photos.php b/include/photos.php index eebddd393..82af4aaeb 100644 --- a/include/photos.php +++ b/include/photos.php @@ -77,6 +77,7 @@ function photo_upload($channel, $observer, $args) { $filesize = intval($_FILES['userfile']['size']); $type = $_FILES['userfile']['type']; } + if (! $type) $type=guess_image_type($filename); From 420b330e55617ee9b968cbaeeb828f559cb8c56d Mon Sep 17 00:00:00 2001 From: tobiasd Date: Thu, 23 Jan 2014 11:58:56 +0100 Subject: [PATCH 2/2] the bootstrap theme is obsolete, use clean instead --- doc/External-Resources.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/External-Resources.md b/doc/External-Resources.md index d5bed17a2..9339d0352 100644 --- a/doc/External-Resources.md +++ b/doc/External-Resources.md @@ -8,7 +8,7 @@ External Resources * [APW](https://github.com/beardy-unixer/apw) * [Redstrap](https://github.com/omigeot/redstrap3) * [Pluto](https://github.com/23n/Pluto) -* [bootstrap](https://bitbucket.org/tobiasd/red-theme-bootstrap/overview) +* [clean](https://bitbucket.org/tobiasd/red-clean) **Third-Party Addons**