Changeset 2026


Ignore:
Timestamp:
May 26, 2007, 12:02:47 AM (17 years ago)
Author:
rub
Message:

Improvement of picture url built

Location:
trunk/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions.inc.php

    r1992 r2026  
    793793  if ( !url_is_remote($path) )
    794794  {
    795     $path = get_root_url().$path;
    796   }
     795    $path = embellish_url(get_root_url().$path);
     796  }
     797
    797798  // plugins want another url ?
    798799  $path = trigger_event('get_thumbnail_url', $path, $element_info);
  • trunk/include/functions_picture.inc.php

    r1903 r2026  
    44// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
    55// +-----------------------------------------------------------------------+
    6 // | branch        : BSF (Best So Far)
    7 // | file          : $RCSfile$
     6// | file          : $Id$
    87// | last update   : $Date$
    98// | last modifier : $Author$
     
    4847  if ( !url_is_remote($url) )
    4948  {
    50     $url = get_root_url().$url;
     49    $url = embellish_url(get_root_url().$url);
    5150  }
    5251  // plugins want another url ?
     
    122121  if ( !url_is_remote($url) )
    123122  {
    124     $url = get_root_url().$url;
     123    $url = embellish_url(get_root_url().$url);
    125124  }
    126125  return $url;
     
    180179  if (!empty($url) and !url_is_remote($url) )
    181180  {
    182     $url = get_root_url().$url;
     181    $url = embellish_url(get_root_url().$url);
    183182  }
    184183  // plugins want another url ?
  • trunk/include/functions_url.inc.php

    r1980 r2026  
    702702}
    703703
     704/**
     705 * Embellish the url argument
     706 *
     707 * @param $url
     708 * @return $url embellished
     709 */
     710function embellish_url($url)
     711{
     712  return str_replace('/./', '/', $url);
     713}
     714
    704715?>
Note: See TracChangeset for help on using the changeset viewer.