Skip to content

Commit

Permalink
review dashboard #1
Browse files Browse the repository at this point in the history
  • Loading branch information
fhelfer committed Jun 26, 2023
1 parent e8f3925 commit e079645
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Services/Block/classes/class.ilBlockGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

use ILIAS\Filesystem\Stream\Streams;
use ILIAS\HTTP\Response\Sender\ResponseSendingException;
use ILIAS\UI\Component\Modal\Modal;

/**
* This class represents a block method of a block.
Expand Down Expand Up @@ -884,7 +885,7 @@ public function getHTMLNew(): string
});
}

if (isset($command['modal']) && $command['modal'] instanceof \ILIAS\UI\Component\Modal\Modal) {
if (isset($command['modal']) && $command['modal'] instanceof Modal) {
$button = $button->withOnClick($command["modal"]->getShowSignal());
$modals[] = $command['modal'];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ public function changePDItemSortingObject(): void
public function changePDItemPresentationObject(): void
{
$this->viewSettings->storeActorPresentationMode(
\ilUtil::stripSlashes((string) ($this->http->request()->getQueryParams()['presentation'] ?? ''))
ilUtil::stripSlashes((string) ($this->http->request()->getQueryParams()['presentation'] ?? ''))
);
$this->initAndShow();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -470,17 +470,17 @@ public function enabledStudyProgrammes(): bool

public function enableRecommendedContent(bool $status): void
{
$this->settings->set('enable_recommended_content', (string) !$status);
$this->settings->set('enable_recommended_content', $status ? "0" : "1");
}

public function enableLearningSequences(bool $status): void
{
$this->settings->set('enable_learning_sequences', (string) !$status);
$this->settings->set('enable_learning_sequences', $status ? "0" : "1");
}

public function enableStudyProgrammes(bool $status): void
{
$this->settings->set('enable_study_programmes', (string) !$status);
$this->settings->set('enable_study_programmes', $status ? "0" : "1");
}

public function getViewName(int $view): string
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div id="pd_unsubscribe_multiple">
{CONTENT}
</div>
</div>+

0 comments on commit e079645

Please sign in to comment.