Overview
Comment: | Fix absolute links in skriv |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | dev |
Files: | files | file ages | folders |
SHA3-256: |
a403442fd1d210cab710c726277b51b0 |
User & Date: | bohwaz on 2021-04-02 15:23:47 |
Other Links: | branch diff | manifest | tags |
Context
2021-04-05
| ||
13:31 | Redirect old categories URLs, fix [c43490ea35a695d1ca18645cc288978dbeaaaec2] check-in: f62707369a user: bohwaz tags: dev | |
2021-04-02
| ||
15:23 | Fix absolute links in skriv check-in: a403442fd1 user: bohwaz tags: dev | |
15:07 | Add details on backup of files check-in: ba5c3a31fd user: bohwaz tags: dev | |
Changes
Modified src/include/lib/Garradin/Web/Render/Skriv.php from [b19ec29cfd] to [b88f52b63d].
︙ | ︙ | |||
38 39 40 41 42 43 44 45 46 47 48 | // "bla/Image.jpg" in web context or absolute link, eg. "/transactions/2442/42.jpg" else { return WWW_URL . '/' . ltrim($uri, '/'); } } static public function resolveLink(string $uri) { if (strpos(Utils::basename($uri), '.') === false) { $uri .= self::$link_suffix; } | > > > > < < < < | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | // "bla/Image.jpg" in web context or absolute link, eg. "/transactions/2442/42.jpg" else { return WWW_URL . '/' . ltrim($uri, '/'); } } static public function resolveLink(string $uri) { if (substr($uri, 0, 1) == '/') { return WWW_URL . ltrim($uri, '/'); } if (strpos(Utils::basename($uri), '.') === false) { $uri .= self::$link_suffix; } return self::$link_prefix . $uri; } static public function render(?File $file, ?string $content = null, array $options = []): string { if (!self::$skriv) { |
︙ | ︙ |