|
@@ -20,7 +20,7 @@ discard block |
|
|
block discarded – undo |
|
20
|
20
|
if (isset($this->parameters['document'])) { |
|
21
|
21
|
$this->parameters['document'] = $storage->getDocumentBySlug($this->parameters['document']); |
|
22
|
22
|
} else { |
|
23
|
|
- throw new \Exception('When not using a regex, you need to set the parameter `document` with the path to the document in this sitemap item: ' . $this->matchedSitemapItem->title); |
|
|
23
|
+ throw new \Exception('When not using a regex, you need to set the parameter `document` with the path to the document in this sitemap item: '.$this->matchedSitemapItem->title); |
|
24
|
24
|
} |
|
25
|
25
|
} else { |
|
26
|
26
|
if (isset($this->parameters['document'])) { |
|
@@ -29,9 +29,9 @@ discard block |
|
|
block discarded – undo |
|
29
|
29
|
$relativeDocumentUri = current($this->matchedSitemapItem->matches[1]); |
|
30
|
30
|
if (isset($this->parameters['folder'])) { |
|
31
|
31
|
if (substr($this->parameters['folder'], -1) !== '/') { |
|
32
|
|
- $this->parameters['folder'] = $this->parameters['folder'] . '/'; |
|
|
32
|
+ $this->parameters['folder'] = $this->parameters['folder'].'/'; |
|
33
|
33
|
} |
|
34
|
|
- $relativeDocumentUri = $this->parameters['folder'] . $relativeDocumentUri; |
|
|
34
|
+ $relativeDocumentUri = $this->parameters['folder'].$relativeDocumentUri; |
|
35
|
35
|
} |
|
36
|
36
|
|
|
37
|
37
|
$document = $storage->getDocumentBySlug($relativeDocumentUri); |
Please login to merge, or discard this patch.