Ignore:
Timestamp:
Jun 21, 2006, 9:34:46 PM (18 years ago)
Author:
nikrou
Message:

fix bug 431: src of image are incorrect:
ex: ././galleries/img.jpg instead of ./galleries/img.jpg

File:
1 edited

Legend:

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

    r1131 r1374  
    2828/**
    2929 * returns a prefix for each url link on displayed page
     30 * and return an empty string for current path
    3031 * @return string
    3132 */
     
    3536  if ( isset($page['root_path']) )
    3637  {
    37     return $page['root_path'];
    38   }
    39   return PHPWG_ROOT_PATH;
     38    $root_url = $page['root_path'];
     39  }
     40  else
     41  {
     42    $root_url = PHPWG_ROOT_PATH;
     43  }
     44  if ( dirname($root_url)!='.' )
     45  {
     46    return $root_url;
     47  }
     48  else
     49  {
     50    return '';
     51  }
    4052}
    4153
Note: See TracChangeset for help on using the changeset viewer.