parent
49e8116308
commit
3d18d74567
|
@ -185,13 +185,13 @@ class Upload {
|
||||||
}
|
}
|
||||||
|
|
||||||
//remove query string from url to get correct image name
|
//remove query string from url to get correct image name
|
||||||
public function getNameFromURL()
|
protected function getNameFromURL()
|
||||||
{
|
{
|
||||||
$source_url=$this->source;
|
if(strpos($this->source, '?')) {
|
||||||
if(strpos($source_url,"?"))
|
return substr($this->source, 0, strpos($this->source, '?'));
|
||||||
return substr($source_url,0,strpos($source_url,"?"));
|
} else {
|
||||||
else
|
return $this->source;
|
||||||
return $source_url;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Failover since v3.8.12
|
// Failover since v3.8.12
|
||||||
|
|
Loading…
Reference in New Issue