mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
Fix #247 missing title in sitelock page
This commit is contained in:
parent
c8c03e04ca
commit
8f9011a235
1 changed files with 3 additions and 2 deletions
|
|
@ -1453,7 +1453,7 @@ class Context
|
||||||
// Set headers and constants for backward compatibility.
|
// Set headers and constants for backward compatibility.
|
||||||
header('HTTP/1.1 503 Service Unavailable');
|
header('HTTP/1.1 503 Service Unavailable');
|
||||||
define('_XE_SITELOCK_', TRUE);
|
define('_XE_SITELOCK_', TRUE);
|
||||||
define('_XE_SITELOCK_TITLE_', config('lock.title'));
|
define('_XE_SITELOCK_TITLE_', config('lock.title') ?: self::getLang('admin.sitelock_in_use'));
|
||||||
define('_XE_SITELOCK_MESSAGE_', config('lock.message'));
|
define('_XE_SITELOCK_MESSAGE_', config('lock.message'));
|
||||||
unset($_SESSION['XE_VALIDATOR_RETURN_URL']);
|
unset($_SESSION['XE_VALIDATOR_RETURN_URL']);
|
||||||
|
|
||||||
|
|
@ -1464,10 +1464,11 @@ class Context
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
self::setBrowserTitle(self::getSiteTitle());
|
||||||
$oMessageObject = getView('message');
|
$oMessageObject = getView('message');
|
||||||
$oMessageObject->setHttpStatusCode(503);
|
$oMessageObject->setHttpStatusCode(503);
|
||||||
$oMessageObject->setError(-1);
|
$oMessageObject->setError(-1);
|
||||||
$oMessageObject->setMessage(config('lock.title'));
|
$oMessageObject->setMessage(_XE_SITELOCK_TITLE_);
|
||||||
$oMessageObject->dispMessage();
|
$oMessageObject->dispMessage();
|
||||||
$oModuleHandler = new ModuleHandler;
|
$oModuleHandler = new ModuleHandler;
|
||||||
$oModuleHandler->displayContent($oMessageObject);
|
$oModuleHandler->displayContent($oMessageObject);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue