@@ 205-212 (lines=8) @@ | ||
202 | $relPath = $matches[1]; |
|
203 | ||
204 | // Template in module |
|
205 | } elseif (preg_match( |
|
206 | '#'.preg_quote($this->base).'/([^/]+)/(.*)$#', |
|
207 | $pathname, |
|
208 | $matches |
|
209 | )) { |
|
210 | $relPath = $matches[2]; |
|
211 | ||
212 | } else { |
|
213 | throw new \LogicException("Can't determine meaning of path: $pathname"); |
|
214 | } |
|
215 | ||
@@ 217-219 (lines=3) @@ | ||
214 | } |
|
215 | ||
216 | // If a templates subfolder is used, ignore that |
|
217 | if (preg_match('#'.preg_quote(self::TEMPLATES_DIR).'/(.*)$#', $relPath, $matches)) { |
|
218 | $relPath = $matches[1]; |
|
219 | } |
|
220 | ||
221 | // Layout and Content folders have special meaning |
|
222 | if (preg_match('#^(.*/)?(Layout|Content|Includes)/([^/]+)$#', $relPath, $matches)) { |