Fixed (file) comments.

This commit is contained in:
2018-06-19 18:02:04 +02:00
committed by Stefan Rohde-Enslin
parent 32345e9629
commit e3254eaaf7
13 changed files with 43 additions and 20 deletions

View File

@ -1,7 +1,6 @@
<?PHP
/**
* Start page of the backend.
* Offers a dashboard.
* Settings page.
*
* @author Joshua Ramon Enslin <joshua@jrenslin.de>
*/
@ -28,7 +27,11 @@ if (!$_SESSION['admin']) {
// Check for vars.
loadHttpToGlobals(["task", "startPage", "pageTitle", "logo", "url", "css", "hideInstitution", "mdVersion", "mdImgFolder", "cacheRefreshInterval", "limitToInstitutions", "maxFileSize", "sendHTTPHeaders", "CSPimageSources", "CSPobjectSources", "defaultLang"]);
if (isset($task) and $task == "update") { // Adding new users.
/**
* Part for editing settings.
*/
if (isset($task) and $task == "update") {
if (isset($defaultLang) and !in_array("$defaultLang.php", scanDirConts(__DIR__ . "/translations"))) {
$_SESSION["editHistory"] = ["changesAborted", $translations['languageUnavailable']];