Update functions.php

See previous comment.
pull/39/head
Rodolfo Berrios 2019-09-30 14:52:04 -03:00 committed by GitHub
parent 395ede243c
commit a43ab0b008
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 11 deletions

View File

@ -463,17 +463,6 @@ function get_users_image_url($filename) {
return get_content_url('images/users/'.$filename);
}
function getLatestImage($user)
{
$db = DB::getInstance();
$db->query('select image_name,image_extension,image_date FROM '.DB::getTable('images').' where `image_user_id`='.$user.' order by image_date desc limit 1');
$user_images = $db->fetchAll();
$st=strtotime($user_images[0]['image_date']);
$dloc='/'.getSetting('upload_image_path').date("/Y/m/d/",$st);
return array($user_images[0]['image_name'],$dloc.$user_images[0]['image_name'].'.'.$user_images[0]['image_extension']);
}
/**
* Some G\ overrides
*/