Compare commits

...

3 Commits

3 changed files with 12 additions and 5 deletions

View File

@ -74,6 +74,9 @@ class core extends controller
// Blocking requests from CloudFlare (better to write this blocking into nginx config file)
if (isset($$_SERVER['HTTP_USER_AGENT']) && $$_SERVER['HTTP_USER_AGENT'] === 'nginx-ssl early hints') return status::bruh->label;
// Initializing the view template engine instance
$$this->view = new templater($$this->session);
// For the extends system
parent::__construct(core: $$core);
}

View File

@ -29,15 +29,15 @@ enum language
*
* @return string Translated label of the language
*/
public function label(?language $language = language::en): string
public function label(?language $$language = language::en): string
{
// Exit (success)
return match ($this) {
language::en => match ($language) {
return match ($$this) {
language::en => match ($$language) {
language::en => 'English',
language::ru => 'Английский'
},
language::ru => match ($language) {
language::ru => match ($$language) {
language::en => 'Russian',
language::ru => 'Русский'
}
@ -54,7 +54,7 @@ enum language
public function flag(): string
{
// Exit (success)
return match ($this) {
return match ($$this) {
language::en => '🇺🇸',
language::ru => '🇷🇺'
};

View File

@ -1,5 +1,9 @@
@charset "UTF-8";
body {
margin: unset;
}
main {
display: flex;
flex-direction: column;