1
0
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:
Ryan Cramer
2019-08-02 10:30:57 -04:00
parent 2f6497d1e5
commit 0e9cc868b7
5 changed files with 849 additions and 483 deletions

View File

@@ -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;
}
/**