1
0
Fork 0

Merge pull request #4060 from annando/system-unavailable

"system_unavailable.php" is unavailable now
This commit is contained in:
Hypolite Petovan 2017-12-13 17:01:47 -05:00 committed by GitHub
commit 369fcb7bae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 23 deletions

View file

@ -100,6 +100,20 @@ class System
return implode(', ', $callstack2);
}
/**
* @brief Called from db initialisation when db is dead.
*/
static public function unavailable() {
echo <<< EOT
<html>
<head><title>System Unavailable</title></head>
<body>Apologies but this site is unavailable at the moment. Please try again later.</body>
</html>
EOT;
killme();
}
/// @todo Move the following functions from boot.php
/*
function get_guid($size = 16, $prefix = "")