($path)
| 601 | } |
| 602 | |
| 603 | function fr_with_base_path($path) |
| 604 | { |
| 605 | $p = (string)$path; |
| 606 | $bp = defined('FR_BASE_PATH') ? (string)FR_BASE_PATH : ''; |
| 607 | if ($bp === '' || $p === '' || $p[0] !== '/') return $p; |
| 608 | if ($p === $bp || strpos($p, $bp . '/') === 0) return $p; |
| 609 | return $bp . $p; |
| 610 | } |
| 611 | |
| 612 | function fr_profile_pic_url(string $filename): string |
| 613 | { |
no outgoing calls
no test coverage detected