Skip to content

Commit

Permalink
missing lang variable
Browse files Browse the repository at this point in the history
chfsx committed May 2, 2022

Verified

This commit was signed with the committer’s verified signature.
MaxymVlasov Maksym Vlasov
1 parent 09266d0 commit a4a08ac
Showing 5 changed files with 11 additions and 3 deletions.
7 changes: 6 additions & 1 deletion classes/class.ilUserTakeOverMainGUI.php
Original file line number Diff line number Diff line change
@@ -67,6 +67,10 @@ class ilUserTakeOverMainGUI
* @var Access
*/
protected $access_checks;
/**
* @var ilLanguage
*/
protected $lng;

public function __construct()
{
@@ -79,6 +83,7 @@ public function __construct()
$this->plugin = ilUserTakeOverPlugin::getInstance();
$this->user_id = $DIC->user()->getId();
$this->access_checks = new Access($this->user_id, $this->user_id);
$this->lng = $DIC->language();
}

/**
@@ -133,7 +138,7 @@ private function initPage() : void
{
$this->main_tpl->setDescription("");
$this->main_tpl->setTitle(
$this->plugin->txt("cmps_plugin") . ": " . ilUserTakeOverPlugin::PLUGIN_CLASS_NAME
$this->lng->txt("cmps_plugin") . ": " . ilUserTakeOverPlugin::PLUGIN_CLASS_NAME
);

$this->tabs->addTab(
1 change: 1 addition & 0 deletions lang/ilias_de.lang
Original file line number Diff line number Diff line change
@@ -49,3 +49,4 @@ status_original_login#:#Ursprünglicher Benutzer
status_impersonated_login#:#Eingenommene Benutzersicht
cnf_global_role_ids#:#Zugriff auf Suchfunktion
cnf_global_role_ids_info#:#Die Role "Administrator" hat immer Zugriff auf die Suche.
configuration#:#Konfiguration
1 change: 1 addition & 0 deletions lang/ilias_en.lang
Original file line number Diff line number Diff line change
@@ -49,3 +49,4 @@ status_original_login#:#Original User
status_impersonated_login#:#Impersonated User
cnf_global_role_ids#:#Access to Impersonate-Search
cnf_global_role_ids_info#:#Role "Administrator" has always access to the Impersonate-Search
configuration#:#Configuration
3 changes: 2 additions & 1 deletion lang/ilias_pt.lang
Original file line number Diff line number Diff line change
@@ -46,4 +46,5 @@ back#:#Voltar
status#:#Status
status_original_login#:#Usuário original
status_impersonated_login#:#Usuário imitado
cnf_global_role_ids#:#Access to impersonate-serach
cnf_global_role_ids#:#Access to impersonate-serach
configuration#:#Configuration
2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

$id = 'usrto';
$version = '4.0.2';
$version = '4.0.3';
$ilias_min_version = '6.0';
$ilias_max_version = '7.9999';
$responsible = 'sr.solutions';

0 comments on commit a4a08ac

Please sign in to comment.