Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove use of old $TestServer variable #1894

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mcdurdin
Copy link
Member

Also removed $site_securetavultesoft and $downloadsDomain.

Fixes: #1870

Also removed $site_securetavultesoft and $downloadsDomain.

Fixes: #1870
@mcdurdin mcdurdin added this to the B18S2 milestone Feb 24, 2025
@mcdurdin mcdurdin requested a review from darcywong00 February 24, 2025 14:11
@@ -81,8 +82,7 @@ function get_kmwbuild()
case 2:
return "2.0.473";
default:
global $TestServer;
if($TestServer) {
if(KeymanHosts::Instance()->Tier() != KeymanHosts::TIER_PRODUCTION) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only saw $TestServer get initialized to false in servervars.php.

Would we ever check TIER_TEST?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$TestServer was closer to staging -- it derives from when we had a 'test server' hosting tavultesoft's websites years and years ago. It wasn't used for automated tests. I don't think we need to check TIER_TEST here -- this code needs refactoring and rewrite one day because it's very old and the values are really out of date!

Copy link
Contributor

@darcywong00 darcywong00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

refactor: stop using $TestServer and related variables
2 participants