Skip to content
Snippets Groups Projects
Commit d0ede280 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Simplify SimpleSAML\XHTML\Template::findModuleAndTemplateName().

parent 6ea66ac0
No related branches found
No related tags found
No related merge requests found
......@@ -394,15 +394,7 @@ class SimpleSAML_XHTML_Template
private function findModuleAndTemplateName($template)
{
$tmp = explode(':', $template, 2);
if (count($tmp) === 2) {
$templateModule = $tmp[0];
$templateName = $tmp[1];
} else {
$templateModule = null;
$templateName = $tmp[0];
}
return array($templateModule, $templateName);
return (count($tmp) === 2) ? array($tmp[0], $tmp[1]) : array(null, $tmp[0]);
}
......
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