mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-78475 communication: earlier install check for rendering links.
This commit is contained in:
parent
71c36d2de1
commit
a45f9d5076
1 changed files with 1 additions and 6 deletions
|
@ -4275,7 +4275,7 @@ EOD;
|
|||
* @return bool
|
||||
*/
|
||||
public function has_communication_links(): bool {
|
||||
if (!core_communication\api::is_available()) {
|
||||
if (during_initial_install() || !core_communication\api::is_available()) {
|
||||
return false;
|
||||
}
|
||||
return !empty($this->communication_link());
|
||||
|
@ -4287,11 +4287,6 @@ EOD;
|
|||
* @return string
|
||||
*/
|
||||
public function communication_link(): string {
|
||||
|
||||
if (during_initial_install()) {
|
||||
return '';
|
||||
}
|
||||
|
||||
$link = $this->communication_url() ?? '';
|
||||
$commicon = $this->pix_icon('t/messages-o', '', 'moodle', ['class' => 'fa fa-comments']);
|
||||
$newwindowicon = $this->pix_icon('i/externallink', get_string('opensinnewwindow'), 'moodle', ['class' => 'ml-1']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue