Fixed (file) comments.
This commit is contained in:
@ -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']];
|
||||
|
Reference in New Issue
Block a user