Overview
Comment: | Smartyer: use a simpler way to fetch the relative path of an included template |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | 7.3 |
Files: | files | file ages | folders |
SHA1: |
2cbf457d1d02624efe47d79edba7e5a8 |
User & Date: | bohwaz on 2022-05-13 11:42:31 |
Other Links: | branch diff | manifest | tags |
Context
2022-05-13
| ||
12:06 | Fix PHP 8.1 notice check-in: 011bbb8cd1 user: bohwaz tags: 7.3 | |
11:42 | Smartyer: use a simpler way to fetch the relative path of an included template check-in: 2cbf457d1d user: bohwaz tags: 7.3 | |
2022-05-04
| ||
22:45 | Blocks editor: some advancement check-in: 5ce5ceb1e6 user: bohwaz tags: 7.3 | |
Changes
Modified src/lib/KD2/Smartyer.php from [797c9a203f] to [523f4062a1].
︙ | ︙ | |||
857 858 859 860 861 862 863 | if (empty($args['file'])) { $this->parseError($line, '{include} function requires file parameter.'); } if (substr($this->getValueFromArgument($args['file']), 0, 2) == './') { | | | | 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 | if (empty($args['file'])) { $this->parseError($line, '{include} function requires file parameter.'); } if (substr($this->getValueFromArgument($args['file']), 0, 2) == './') { $root = dirname($this->template_path); $args['file'] = var_export($root . substr($this->getValueFromArgument($args['file']), 1), true); } $file = $this->exportArgument($args['file']); unset($args['file']); if (count($args) > 0) { |
︙ | ︙ |