[TikiWiki-commits] [Git][tikiwiki/tiki][tiki-tmpDir-pref] [DOC] tiki_temp_dir: enhance code documentation
"Sammy Ndabo \(@ndabosam084\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <69666e6d8fe87_2c1818ac507fb@gitlab-sidekiq-low-urgency-cpu-bound-v2-6878c7b954-bhnf2.mail> |
Sammy Ndabo pushed to branch tiki-tmpDir-pref at Tiki Wiki CMS Groupware / Tiki Commits: 7d9e4bbb by Sammy Ndabo at 2026-01-13T18:10:05+02:00 [DOC] tiki_temp_dir: enhance code documentation - - - - - 1 changed file: - lib/tikilib.php Changes: ===================================== lib/tikilib.php ===================================== @@ -7502,6 +7502,7 @@ function makeBool($val, $default) * Returns a filesystem path to the temp directory. * * Uses $prefs['tmpDir'] when set and appends /public for web-accessible storage. + * The returned value always has a `/` at the end. * * @param bool $public True to return the public temp directory. * @return string @@ -7524,6 +7525,7 @@ function tiki_temp_dir(bool $public = false): string * * If tmpDir is outside TIKI_PATH, * falls back to temp/public/ + * The returned value always has a `/` at the end, so you can safely concatenate it for building a web path. * * @return string */ View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/7d9e4bbb1d3900f9c7012386c320e0ae076c6169 -- View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/7d9e4bbb1d3900f9c7012386c320e0ae076c6169 You're receiving this email because of your account on gitlab.com. _______________________________________________ TikiWiki-cvs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs