- updated "maintenance hint" with new release information v1.4.1

- improved "maintenance hint" rendering, toggle visibility by HTTP response header
This commit is contained in:
Mark Friedrich
2018-09-26 13:53:19 +02:00
parent 6e9920bd93
commit b157b5bd0b
10 changed files with 185 additions and 189 deletions

View File

@@ -76,7 +76,12 @@ class Controller {
$this->initSession($f3);
if($f3->get('AJAX')){
header('Content-type: application/json');
header('Content-Type: application/json');
// send "maintenance" Header -> e.g. before server update
if($modeMaintenance = (int)Config::getPathfinderData('login.mode_maintenance')){
header('Pf-Maintenance: ' . $modeMaintenance);
}
}else{
$this->initResource($f3);