mirror of
https://github.com/processwire/processwire.git
synced 2025-08-14 10:45:54 +02:00
Minor refactoring in ProcessPageEditImageSelect, plus update the executeVariations() method to also show webp extras when applicable.
This commit is contained in:
@@ -923,10 +923,13 @@ class Sanitizer extends Wire {
|
||||
$value = "$basename.$pathinfo[extension]";
|
||||
}
|
||||
|
||||
return $this->name($value, $beautify, $maxLength, '_', array(
|
||||
$value = $this->name($value, $beautify, $maxLength, '_', array(
|
||||
'allowAdjacentExtras' => true, // language translation filenames require doubled "--" chars, others may too
|
||||
)
|
||||
);
|
||||
));
|
||||
|
||||
while(strpos($value, '..') !== false) $value = str_replace('..', '', $value);
|
||||
|
||||
return $value;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user