mirror of
https://github.com/processwire/processwire.git
synced 2025-08-13 02:04:35 +02:00
Fix issue processwire/processwire-issues#487 where svg files in $config->pageFileSecure mode needed entry in $config->fileContentTypes
This commit is contained in:
@@ -562,6 +562,7 @@ $config->fileContentTypes = array(
|
|||||||
'jpg' => 'image/jpeg',
|
'jpg' => 'image/jpeg',
|
||||||
'jpeg' => 'image/jpeg',
|
'jpeg' => 'image/jpeg',
|
||||||
'png' => 'image/x-png',
|
'png' => 'image/x-png',
|
||||||
|
'svg' => 'image/svg+xml'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
@@ -91,7 +91,7 @@ class SelectableOptionConfig extends Wire {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$removedOptionIDs = $this->manager->getRemovedOptionIDs($this->field); // identified for removal
|
$removedOptionIDs = $this->manager->getRemovedOptionIDs(); // identified for removal
|
||||||
if(count($removedOptionIDs)) {
|
if(count($removedOptionIDs)) {
|
||||||
// stuff in session for next request
|
// stuff in session for next request
|
||||||
$this->wire('session')->set($ns, 'removedOptionIDs', $removedOptionIDs);
|
$this->wire('session')->set($ns, 'removedOptionIDs', $removedOptionIDs);
|
||||||
|
Reference in New Issue
Block a user