only variables can be sent by reference (strict standards)
This commit is contained in:
@@ -85,7 +85,8 @@ class AvatarLink
|
||||
|
||||
// yuck!
|
||||
static function mediatype($filename) {
|
||||
$ext = strtolower(end(explode('.', $filename)));
|
||||
$parts = explode('.', $filename);
|
||||
$ext = strtolower(end($parts));
|
||||
if ($ext == 'jpeg') {
|
||||
$ext = 'jpg';
|
||||
}
|
||||
|
Reference in New Issue
Block a user