summaryrefslogtreecommitdiffstats
path: root/lib/SimpleSAML/XHTML/Template.php
diff options
context:
space:
mode:
authorJaime Perez Crespo <jaime.perez@uninett.no>2016-06-08 15:07:01 +0200
committerJaime Perez Crespo <jaime.perez@uninett.no>2016-06-08 15:07:01 +0200
commit17e63ab160b74dde508102dcbbf717f5c266e7be (patch)
tree9aa7ff38584e67c7e752da79261d174c60b4cd26 /lib/SimpleSAML/XHTML/Template.php
parentdd60fe75ef49c60ad39e47ea43512c6d3b59d306 (diff)
downloadsimplesamlphp-17e63ab160b74dde508102dcbbf717f5c266e7be.zip
simplesamlphp-17e63ab160b74dde508102dcbbf717f5c266e7be.tar.gz
simplesamlphp-17e63ab160b74dde508102dcbbf717f5c266e7be.tar.bz2
Stop using the deprecated SimpleSAML_Configuration::getBaseURL() method.
Diffstat (limited to 'lib/SimpleSAML/XHTML/Template.php')
-rw-r--r--lib/SimpleSAML/XHTML/Template.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/SimpleSAML/XHTML/Template.php b/lib/SimpleSAML/XHTML/Template.php
index 7cbf709..8214ac1 100644
--- a/lib/SimpleSAML/XHTML/Template.php
+++ b/lib/SimpleSAML/XHTML/Template.php
@@ -50,7 +50,8 @@ class SimpleSAML_XHTML_Template
{
$this->configuration = $configuration;
$this->template = $template;
- $this->data['baseurlpath'] = $this->configuration->getBaseURL();
+ // TODO: do not remove the slash from the beginning, change the templates instead!
+ $this->data['baseurlpath'] = ltrim($this->configuration->getBasePath(), '/');
$this->translator = new SimpleSAML\Locale\Translate($configuration, $defaultDictionary);
}