Fix non-variable matches class (#522)
This commit is contained in:
parent
30b57a1e42
commit
d3e6a3ee3a
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user