Skip to content
Snippets Groups Projects
Commit b7374dd2 authored by Hanne Moa's avatar Hanne Moa
Browse files

Make `noop()` static

This makes instanciating the Translate/Template-class unnecessary.
parent e6ead78b
No related branches found
No related tags found
No related merge requests found
...@@ -228,7 +228,7 @@ class Translate ...@@ -228,7 +228,7 @@ class Translate
* *
* @return string The tag, unchanged. * @return string The tag, unchanged.
*/ */
public function noop($tag) static public function noop($tag)
{ {
return $tag; return $tag;
} }
......
...@@ -567,14 +567,14 @@ class SimpleSAML_XHTML_Template ...@@ -567,14 +567,14 @@ class SimpleSAML_XHTML_Template
/** /**
* Wrap Language->noop to mark a tag for translation but actually do it later. * Behave like Language->noop to mark a tag for translation but actually do it later.
* *
* @see \SimpleSAML\Locale\Translate::noop() * @see \SimpleSAML\Locale\Translate::noop()
* @deprecated This method will be removed in SSP 2.0. Please use \SimpleSAML\Locale\Translate::t() instead. * @deprecated This method will be removed in SSP 2.0. Please use \SimpleSAML\Locale\Translate::noop() instead.
*/ */
public function noop($tag) static public function noop($tag)
{ {
return $this->translator->noop($tag); return $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