Changeset 2026
- Timestamp:
- May 26, 2007, 12:02:47 AM (17 years ago)
- Location:
- trunk/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions.inc.php
r1992 r2026 793 793 if ( !url_is_remote($path) ) 794 794 { 795 $path = get_root_url().$path; 796 } 795 $path = embellish_url(get_root_url().$path); 796 } 797 797 798 // plugins want another url ? 798 799 $path = trigger_event('get_thumbnail_url', $path, $element_info); -
trunk/include/functions_picture.inc.php
r1903 r2026 4 4 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 5 5 // +-----------------------------------------------------------------------+ 6 // | branch : BSF (Best So Far) 7 // | file : $RCSfile$ 6 // | file : $Id$ 8 7 // | last update : $Date$ 9 8 // | last modifier : $Author$ … … 48 47 if ( !url_is_remote($url) ) 49 48 { 50 $url = get_root_url().$url;49 $url = embellish_url(get_root_url().$url); 51 50 } 52 51 // plugins want another url ? … … 122 121 if ( !url_is_remote($url) ) 123 122 { 124 $url = get_root_url().$url;123 $url = embellish_url(get_root_url().$url); 125 124 } 126 125 return $url; … … 180 179 if (!empty($url) and !url_is_remote($url) ) 181 180 { 182 $url = get_root_url().$url;181 $url = embellish_url(get_root_url().$url); 183 182 } 184 183 // plugins want another url ? -
trunk/include/functions_url.inc.php
r1980 r2026 702 702 } 703 703 704 /** 705 * Embellish the url argument 706 * 707 * @param $url 708 * @return $url embellished 709 */ 710 function embellish_url($url) 711 { 712 return str_replace('/./', '/', $url); 713 } 714 704 715 ?>
Note: See TracChangeset
for help on using the changeset viewer.