Skip to content

Commit

Permalink
Fixed default safeMode() value
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Dec 30, 2024
1 parent a06b1da commit e652c1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG-WIP.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@
- Database rows with foreign keys referencing nonexistent rows are now deleted via garbage collection.
- Pages which contain image transform generation URLs now set no-cache headers. ([#16195](https://github.com/craftcms/cms/discussions/16195))
- Action requests (such as `actions/app/health-check`) now send no-cache headers by default. ([#16364](https://github.com/craftcms/cms/pull/16364))
- Fixed a bug where `craft\config\GeneralConfig::safeMode()` set Safe Mode to `false` by default.
- Updated Twig to 3.15. ([#16207](https://github.com/craftcms/cms/discussions/16207))
2 changes: 1 addition & 1 deletion src/config/GeneralConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -6093,7 +6093,7 @@ public function runQueueAutomatically(bool $value = true): self
* @see $safeMode
* @since 4.9.0
*/
public function safeMode(bool $value = false): self
public function safeMode(bool $value = true): self
{
$this->safeMode = $value;
return $this;
Expand Down

0 comments on commit e652c1e

Please sign in to comment.