Skip to content

Commit

Permalink
fixed bug 3004 (Wrong path for rule "image") -- patch provided by reg…
Browse files Browse the repository at this point in the history
… at dav-muz dot net

git-svn-id: https://svn.php.net/repository/pear/packages/Text_Wiki/trunk@181536 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
Paul M Jones committed Mar 7, 2005
1 parent eed2121 commit 6a8bb7f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Text/Wiki/Render/Xhtml/Image.php
Expand Up @@ -88,8 +88,12 @@ function token($options)
if (strpos($src,'://')) {
// is a URL link
$imageFile = $src;
} else {
// is a local file
} elseif ($src[0] == '.') {
// reg at dav-muz dot net -- 2005-03-07
// is a local file on relative path.
$imageFile = $src; # ...don't do anything because it's perfect!
} else {
// is a local file on absolute path.
$imageFile = $_SERVER['DOCUMENT_ROOT'] . $src;
}

Expand Down

0 comments on commit 6a8bb7f

Please sign in to comment.