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

feat(platform): refer to platform status in error pages #442

Merged
merged 3 commits into from
Jun 18, 2024
Merged

Conversation

m90
Copy link
Contributor

@m90 m90 commented Jun 10, 2024

@@ -7,13 +7,14 @@
\WBStack\Info\GlobalSet::forDomain($_SERVER['SERVER_NAME']);
} catch (\WBStack\Info\GlobalSetException $ex) {
http_response_code($ex->getCode());
echo "You have requested the domain: " . $_SERVER['SERVER_NAME'] . ". But that wiki can not currently be loaded.".PHP_EOL;
echo "You have requested the domain: " . $_SERVER['SERVER_NAME'] . ". But that wiki can not currently be loaded.<br/>";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Replacing PHP_EOL with <br> is a drive by fix as I noticed this currently did not work as intended.

}
echo $ex->getMessage();
echo $ex->getMessage()."<br/>";
echo "You can check the platform status at <a href=\"https://status.wikibase.cloud\">status.wikibase.cloud</a><br/>.";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This means we'll also display the link on 404 (expected) responses, but I guess that's ok?

@m90 m90 force-pushed the fr/status-in-error branch from 6b86a4d to b09ac27 Compare June 11, 2024 09:23
Copy link
Contributor

Choose a reason for hiding this comment

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

There's a few <br/>. which you might want to swap out with .<br/>.

@m90 m90 merged commit f729f61 into main Jun 18, 2024
9 checks passed
@m90 m90 deleted the fr/status-in-error branch June 18, 2024 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants