Fix non-variable matches class (#522)

This commit is contained in:
onli 2017-07-11 14:06:32 +02:00
parent 30b57a1e42
commit d3e6a3ee3a

View File

@ -2252,7 +2252,7 @@ function serendipity_updateImageInEntries($id) {
$pattern = "@(<!-- s9ymdb:$id -->.*) src=[\"']([^'\"]+)[\"']@"; $pattern = "@(<!-- s9ymdb:$id -->.*) src=[\"']([^'\"]+)[\"']@";
$callback = function($matches) use ($imageHTTPPath, $thumbnailHTTPPath) { $callback = function($matches) use ($imageHTTPPath, $thumbnailHTTPPath) {
if (strpos(matches[2], "{$file['thumbnail_name']}.{$file['extension']}") === false) { if (strpos($matches[2], "{$file['thumbnail_name']}.{$file['extension']}") === false) {
// the image linked not to the thumbnail // the image linked not to the thumbnail
return "{$matches[1]} src='$imageHTTPPath'"; return "{$matches[1]} src='$imageHTTPPath'";
} else { } else {