From 809daf0c1996c43cfb9d29806b2e9e26c5a577f1 Mon Sep 17 00:00:00 2001
From: Jaime Perez Crespo <jaime.perez@uninett.no>
Date: Fri, 5 Feb 2016 15:41:22 +0100
Subject: [PATCH] Same as the previous commit, this time for
 includeInlineTranslation().

---
 modules/consentAdmin/templates/consentadmin.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/consentAdmin/templates/consentadmin.php b/modules/consentAdmin/templates/consentadmin.php
index 9d6890aad..2ca91e568 100644
--- a/modules/consentAdmin/templates/consentadmin.php
+++ b/modules/consentAdmin/templates/consentadmin.php
@@ -72,8 +72,8 @@ span.showhide {
 			$hide_text = $this->t('hide');
 			$attributes_text = $this->t('attributes_text');
 			foreach ($spList AS $spName => $spValues) {
-				$this->includeInlineTranslation('spname', $spValues['name']);
-				$this->includeInlineTranslation('spdescription', $spValues['description']);
+				$this->getTranslator()->includeInlineTranslation('spname', $spValues['name']);
+				$this->getTranslator()->includeInlineTranslation('spdescription', $spValues['description']);
                 if (!is_null($spValues['serviceurl'])) {
                     $htmlSpName = '<a href="' . $spValues['serviceurl'] . '" style="color: black; font-weight: bold;">' . htmlspecialchars($this->t('spname', array(), false, true)) . '</a>';
                 } else {
-- 
GitLab