Skip to content
Snippets Groups Projects
Commit bef25756 authored by Olav Morken's avatar Olav Morken
Browse files

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
parent 21acbc32
No related branches found
No related tags found
No related merge requests found
......@@ -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 . ']');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment