forked from lolcat/4get
1
0
Fork 0

ok its unfucked now

This commit is contained in:
lolcat 2025-04-17 20:06:42 -04:00
parent 077692db49
commit 566680fe36
1 changed files with 7 additions and 9 deletions

View File

@ -60,17 +60,15 @@ try{
if($id === null){
// fallback to getting ID from path
$id = explode("/", $image["path"]);
$id = explode("/th/id/", $image["path"], 2);
for($i=count($id) - 1; $i>0; $i--){
if(count($id) !== 2){
if(trim($id[$i]) != ""){
$id = $id[$i];
break;
}
// malformed
return $url;
}
$id = $id[1];
}
if(is_array($id)){