mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 03:53:13 +00:00
Merge branch '3.8'
This commit is contained in:
@@ -66,9 +66,9 @@ class XSendFileFactory
|
||||
*
|
||||
* @throws InvalidArgumentException if mode type is unknown
|
||||
*/
|
||||
public function getMode($throwException = false)
|
||||
public function getMode($throwException = false, $forceMode = false)
|
||||
{
|
||||
if (false === $this->enabled) {
|
||||
if (false === $this->enabled && true !== $forceMode) {
|
||||
return new NullMode();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user