MCPcopy Create free account
hub / github.com/error311/FileRise / fr_with_base_path

Function fr_with_base_path

config/config.php:603–610  ·  view source on GitHub ↗
($path)

Source from the content-addressed store, hash-verified

601}
602
603function 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
612function fr_profile_pic_url(string $filename): string
613{

Callers 12

with_base_if_relativeFunction · 0.85
downloadSharedFolderMethod · 0.85
shareFolderMethod · 0.85
uploadToSharedFolderMethod · 0.85
handleOidcFlowMethod · 0.85
finishBrowserLoginMethod · 0.85
loginBasicMethod · 0.85
logoutMethod · 0.85
shareFileMethod · 0.85
createAuthFileLinkMethod · 0.85
createShareFolderLinkMethod · 0.85
config.phpFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected