Skip to content

Commit

Permalink
Revert "Merge pull request #24 from craftcms/check-global-aliases"
Browse files Browse the repository at this point in the history
This reverts commit 30a7d56, reversing
changes made to c88fa02.
  • Loading branch information
angrybrad committed Sep 25, 2023
1 parent 97c09a5 commit 88304a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog for Craft CMS Server Check

## Unreleased
- Reverted “The `@web` alias check now checks `Craft::$aliases;` instead of `Craft::$app->getConfig()->getGeneral()->aliases;`”.

## 2.1.7 - 2023-09-19
- Fixed a bug where Opcache extension might not be correct detected on some systems. ([#25](https://github.com/craftcms/server-check/pull/25))
- Removed the check for php.ini’s `max_execution_time` setting. ([#26](https://github.com/craftcms/server-check/pull/26))
Expand Down
2 changes: 1 addition & 1 deletion server/requirements/RequirementsChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ function memoryLimitRequirement()
*/
function webAliasRequirement()
{
$aliases = Craft::$aliases;
$aliases = Craft::$app->getConfig()->getGeneral()->aliases;
$memo = 'We recommend explicitly overriding the <a rel="noopener" target="_blank" href="https://craftcms.com/docs/4.x/config/#aliases">@web alias</a>.';
$pass = false;

Expand Down

0 comments on commit 88304a3

Please sign in to comment.