Overview
Comment: | Force cache directory mkdir in case it has been hard cleared, fix [084a09bbff324c08102f015692ed98431bef3285] |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | dev |
Files: | files | file ages | folders |
SHA3-256: |
1f23b0d518b7e17b1a9f71c86d65df3d |
User & Date: | bohwaz on 2021-04-05 13:36:59 |
Other Links: | branch diff | manifest | tags |
Context
2021-04-05
| ||
14:04 | Add some protection against malicious uploads check-in: c7e2f12dfb user: bohwaz tags: dev | |
13:36 | Force cache directory mkdir in case it has been hard cleared, fix [084a09bbff324c08102f015692ed98431bef3285] check-in: 1f23b0d518 user: bohwaz tags: dev | |
13:31 | Redirect old categories URLs, fix [c43490ea35a695d1ca18645cc288978dbeaaaec2] check-in: f62707369a user: bohwaz tags: dev | |
Changes
Modified src/include/lib/Garradin/UserTemplate/UserTemplate.php from [8a0473ee5b] to [af2cae2f01].
︙ | ︙ | |||
130 131 132 133 134 135 136 137 138 139 140 141 142 143 | if ($this->file) { $compiled_path = sprintf('%s/%s.php', USER_TEMPLATES_CACHE_ROOT, sha1($this->file->path)); } // Use shared cache for default templates else { $compiled_path = sprintf('%s/%s.php', SHARED_USER_TEMPLATES_CACHE_ROOT, sha1($this->path)); } if (file_exists($compiled_path) && filemtime($compiled_path) >= $this->modified) { require $compiled_path; return; } $tmp_path = $compiled_path . '.tmp'; | > > > > > | 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | if ($this->file) { $compiled_path = sprintf('%s/%s.php', USER_TEMPLATES_CACHE_ROOT, sha1($this->file->path)); } // Use shared cache for default templates else { $compiled_path = sprintf('%s/%s.php', SHARED_USER_TEMPLATES_CACHE_ROOT, sha1($this->path)); } if (!is_dir(dirname($compiled_path))) { // Force cache directory mkdir Utils::safe_mkdir(dirname($compiled_path), 0777, true); } if (file_exists($compiled_path) && filemtime($compiled_path) >= $this->modified) { require $compiled_path; return; } $tmp_path = $compiled_path . '.tmp'; |
︙ | ︙ |