@@ -12,12 +12,12 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | class CwpCanonicalURLMiddleware extends CanonicalURLMiddleware |
| 14 | 14 | { |
| 15 | - protected function isEnabled() |
|
| 16 | - { |
|
| 17 | - // If CLI, EnabledEnvs must contain CLI |
|
| 18 | - if (Director::is_cli() && !in_array('cli', $enabledEnvs)) { |
|
| 19 | - return false; |
|
| 20 | - } |
|
| 21 | - return parent::isEnabled(); |
|
| 22 | - } |
|
| 15 | + protected function isEnabled() |
|
| 16 | + { |
|
| 17 | + // If CLI, EnabledEnvs must contain CLI |
|
| 18 | + if (Director::is_cli() && !in_array('cli', $enabledEnvs)) { |
|
| 19 | + return false; |
|
| 20 | + } |
|
| 21 | + return parent::isEnabled(); |
|
| 22 | + } |
|
| 23 | 23 | } |