diff options
author | Jaime Perez Crespo <jaime.perez@uninett.no> | 2016-06-08 15:07:01 +0200 |
---|---|---|
committer | Jaime Perez Crespo <jaime.perez@uninett.no> | 2016-06-08 15:07:01 +0200 |
commit | 17e63ab160b74dde508102dcbbf717f5c266e7be (patch) | |
tree | 9aa7ff38584e67c7e752da79261d174c60b4cd26 /lib/SimpleSAML/XHTML/Template.php | |
parent | dd60fe75ef49c60ad39e47ea43512c6d3b59d306 (diff) | |
download | simplesamlphp-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.php | 3 |
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); } |