Subversion Repositories Applications.papyrus

Rev

Rev 431 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 431 Rev 436
Line 17... Line 17...
17
 */
17
 */
Line 18... Line 18...
18
 
18
 
19
function GetUrlFromPath( $resourceType, $folderPath )
19
function GetUrlFromPath( $resourceType, $folderPath )
20
{
20
{
21
	if ( $resourceType == '' )
21
	if ( $resourceType == '' )
22
		return RemoveFromEnd( $GLOBALS["UserFilesPath"], '/' ) . $folderPath ;
22
		return RemoveFromEnd( $GLOBALS['UrlPrefix'].$GLOBALS["UserFilesPath"], '/' ) . $folderPath ;
23
	else
23
	else
24
		return $GLOBALS["UserFilesPath"] . $resourceType . $folderPath ;
24
		return $GLOBALS['UrlPrefix'].$GLOBALS["UserFilesPath"] . $resourceType . $folderPath ;
Line -... Line 25...
-
 
25
}
25
}
26
 
26
 
27
 
27
function RemoveExtension( $fileName )
28
function RemoveExtension( $fileName )
28
{
29
{