Index: branches/5.3.x/core/units/helpers/file_helper.php =================================================================== diff -u -N -r15902 -r15999 --- branches/5.3.x/core/units/helpers/file_helper.php (.../file_helper.php) (revision 15902) +++ branches/5.3.x/core/units/helpers/file_helper.php (.../file_helper.php) (revision 15999) @@ -1,6 +1,6 @@ Application->BaseURL(), '/') . $url; + return rtrim($this->Application->BaseURL($domain), '/') . $path; } /** * Transforms given url to path to it * - * @param string $url + * @param string $url Url. + * @param string|null $domain Alternative domain to use in url. + * * @return string - * @access public */ - public function urlToPath($url) + public function urlToPath($url, $domain = null) { - $base_url = rtrim($this->Application->BaseURL(), '/'); + $base_url = rtrim($this->Application->BaseURL($domain), '/'); // escape replacement patterns, like "\" $full_path = preg_replace('/(\\\[\d]+)/', '\\\\\1', FULL_PATH);