use error template
This commit is contained in:
parent
aba60dba28
commit
7f7b8bc07a
12
lib/base.php
12
lib/base.php
|
@ -324,10 +324,16 @@ class OC {
|
||||||
if (session_start() === false){
|
if (session_start() === false){
|
||||||
OC_Log::write('core', 'Session could not be initialized',
|
OC_Log::write('core', 'Session could not be initialized',
|
||||||
OC_Log::ERROR);
|
OC_Log::ERROR);
|
||||||
echo 'Session could not be initialized. Please contact your system';
|
|
||||||
echo ' administrator';
|
|
||||||
header('HTTP/1.1 500 Internal Server Error');
|
header('HTTP/1.1 500 Internal Server Error');
|
||||||
exit(1);
|
$error = 'Session could not be initialized. Please contact your ';
|
||||||
|
$error .= 'system administrator';
|
||||||
|
|
||||||
|
$tmpl = new OC_Template('', 'error', 'guest');
|
||||||
|
$tmpl->assign('errors', array(1 => array('error' => $error)));
|
||||||
|
$tmpl->printPage();
|
||||||
|
|
||||||
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
// regenerate session id periodically to avoid session fixation
|
// regenerate session id periodically to avoid session fixation
|
||||||
|
|
Loading…
Reference in New Issue