Merge https://github.com/friendica/friendica into pull
This commit is contained in:
commit
ab710bce3b
7 changed files with 32 additions and 5 deletions
|
@ -143,7 +143,7 @@ class Photo {
|
|||
public function orient($filename) {
|
||||
// based off comment on http://php.net/manual/en/function.imagerotate.php
|
||||
|
||||
if(! function_exists('exif_read_data'))
|
||||
if( (! function_exists('exif_read_data')) || ($this->getType() !== 'image/jpeg') )
|
||||
return;
|
||||
|
||||
$exif = exif_read_data($filename);
|
||||
|
|
|
@ -3621,7 +3621,9 @@ function posted_dates($uid,$wall) {
|
|||
$dnow = substr($dthen,0,8) . '28';
|
||||
|
||||
$ret = array();
|
||||
while($dnow >= $dthen) {
|
||||
// Starting with the current month, get the first and last days of every
|
||||
// month down to and including the month of the first post
|
||||
while(substr($dnow, 0, 7) >= substr($dthen, 0, 7)) {
|
||||
$dstart = substr($dnow,0,8) . '01';
|
||||
$dend = substr($dnow,0,8) . get_dim(intval($dnow),intval(substr($dnow,5)));
|
||||
$start_month = datetime_convert('','',$dstart,'Y-m-d');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue