Skip to content

Commit

Permalink
fix copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
fhelfer committed Jun 26, 2023
1 parent ce29040 commit 7f1d416
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 17 deletions.
29 changes: 15 additions & 14 deletions Services/Dashboard/Block/classes/class.ilBlockDTO.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
<?php

/**
* This file is part of ILIAS, a powerful learning management system
* published by ILIAS open source e-Learning e.V.
*
* ILIAS is licensed with the GPL-3.0,
* see https://www.gnu.org/licenses/gpl-3.0.en.html
* You should have received a copy of said license along with the
* source code, too.
*
* If this is not the case or you just want to try ILIAS, you'll find
* us at:
* https://www.ilias.de
* https://github.com/ILIAS-eLearning
*
*********************************************************************/
* This file is part of ILIAS, a powerful learning management system
* published by ILIAS open source e-Learning e.V.
*
* ILIAS is licensed with the GPL-3.0,
* see https://www.gnu.org/licenses/gpl-3.0.en.html
* You should have received a copy of said license along with the
* source code, too.
*
* If this is not the case or you just want to try ILIAS, you'll find
* us at:
* https://www.ilias.de
* https://github.com/ILIAS-eLearning
*
*********************************************************************/

declare(strict_types=1);

class ilBlockDTO
{
private string $type;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,20 @@
/**
* This file is part of ILIAS, a powerful learning management system
* published by ILIAS open source e-Learning e.V.
*
* ILIAS is licensed with the GPL-3.0,
* see https://www.gnu.org/licenses/gpl-3.0.en.html
* You should have received a copy of said license along with the
* source code, too.
*
* If this is not the case or you just want to try ILIAS, you'll find
* us at:
* https://www.ilias.de
* https://github.com/ILIAS-eLearning
*/
*
*********************************************************************/

declare(strict_types=1);

/**
* Dashboard side panel settings Repo
Expand Down Expand Up @@ -54,15 +59,15 @@ protected function isValidModule(string $mod): bool
public function enable(string $mod, bool $active): void
{
if ($this->isValidModule($mod)) {
$this->setting->set("enable_" . $mod, (int) $active);
$this->setting->set("enable_" . $mod, $active ? '1' : '0');
}
}

// Is module enabled?
public function isEnabled(string $mod): bool
{
if ($this->isValidModule($mod)) {
return (bool) $this->setting->get("enable_" . $mod, true);
return (bool) $this->setting->get("enable_" . $mod, '1');
}
return false;
}
Expand Down

0 comments on commit 7f1d416

Please sign in to comment.