From bef257564baa32139ef9d6825b3bf35e5a0c51ef Mon Sep 17 00:00:00 2001
From: Olav Morken <olav.morken@uninett.no>
Date: Wed, 25 Jun 2008 11:19:24 +0000
Subject: [PATCH] Make the translation-function in the Template-class public,
 for simpler usage in functions.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@710 44740490-163a-0410-bde0-09ae8108e29a
---
 lib/SimpleSAML/XHTML/Template.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/SimpleSAML/XHTML/Template.php b/lib/SimpleSAML/XHTML/Template.php
index c605a009f..3113f3149 100644
--- a/lib/SimpleSAML/XHTML/Template.php
+++ b/lib/SimpleSAML/XHTML/Template.php
@@ -207,7 +207,7 @@ class SimpleSAML_XHTML_Template {
 	 * @param $replacements		 An associative array of keys that should be replaced with values in the translated string.
 	 * @param $striptags		 Should HTML tags be stripped from the translation
 	 */
-	private function t($tag, $fallbacktag = TRUE, $fallbackdefault = true, $replacements = array(), $striptags = false) {
+	public function t($tag, $fallbacktag = TRUE, $fallbackdefault = true, $replacements = array(), $striptags = false) {
 		
 		if (empty($this->langtext) || !is_array($this->langtext)) {
 			SimpleSAML_Logger::error('Template: No language text loaded. Looking up [' . $tag . ']');
-- 
GitLab