}
return $ret;
}
-
+ /**
+ * the getStorename code got changed, and some old files may not end up with the correct name anymore.
+ * this tries to fix it.
+ *
+ */
function canFix() {
// look for the image in the folder, with matching id.
// this is problematic..
return true;
}
// fixme - flag it as bad
+ touch($fn . '-really-missing');
}
$id = $matches[1];
} else if (preg_match('#Images/([0-9]+)/#', $url, $matches)) {
$id = $matches[1];
+ } else if (preg_match('#images[^/]+/([0-9]+)/#', $url, $matches)) {
+ // supports images.xxxxx.com/{number}/name...
+ $id = $matches[1];
}
-
if ($id === false || $id < 1) {
return false;
}