Commit c96fe293 authored by Zot's avatar Zot Committed by Mario
Browse files

cleanup only

parent 8a11dc0c
......@@ -252,11 +252,10 @@ abstract class photo_driver {
*/
if(! $this->is_valid())
return FALSE;
return false;
if((! function_exists('exif_read_data')) || ($this->getType() !== 'image/jpeg'))
return;
return false;
$exif = @exif_read_data($filename,null,true);
......
......@@ -495,15 +495,15 @@ function photos_albums_list($channel, $observer, $sort_key = 'display_path', $di
$ret['success'] = true;
$ret['albums'] = array();
foreach($albums as $k => $album) {
$entry = array(
'text' => (($album['album']) ? $album['album'] : '/'),
$entry = [
'text' => (($album['album']) ? $album['album'] : '/'),
'shorttext' => (($album['album']) ? ellipsify($album['album'],28) : '/'),
'jstext' => (($album['album']) ? addslashes($album['album']) : '/'),
'total' => $album['total'],
'url' => z_root() . '/photos/' . $channel['channel_address'] . '/album/' . $album['folder'],
'jstext' => (($album['album']) ? addslashes($album['album']) : '/'),
'total' => $album['total'],
'url' => z_root() . '/photos/' . $channel['channel_address'] . '/album/' . $album['folder'],
'urlencode' => urlencode($album['album']),
'bin2hex' => $album['folder']
);
'bin2hex' => $album['folder']
];
$ret['albums'][] = $entry;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment