cvs: pear /Bugtracker/bugs/include format-html.php

From: Date: Tue, 21 Aug 2007 22:21:45 +0000
Subject: cvs: pear /Bugtracker/bugs/include format-html.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-48481@lists.php.net to get a copy of this message
jani Tue Aug 21 22:21:45 2007 UTC Modified files: /pear/Bugtracker/bugs/include format-html.php Log: - Fix issue with basedir + image dir (this really needs to be done differently..) http://cvs.php.net/viewvc.cgi/pear/Bugtracker/bugs/include/format-html.php?r1=1.13&r2=1.14&diff_format=u Index: pear/Bugtracker/bugs/include/format-html.php diff -u pear/Bugtracker/bugs/include/format-html.php:1.13 pear/Bugtracker/bugs/include/format-html.php:1.14 --- pear/Bugtracker/bugs/include/format-html.php:1.13 Mon Jul 9 23:41:14 2007 +++ pear/Bugtracker/bugs/include/format-html.php Tue Aug 21 22:21:45 2007 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: format-html.php,v 1.13 2007/07/09 23:41:14 sniper Exp $ + $Id: format-html.php,v 1.14 2007/08/21 22:21:45 jani Exp $ */ @@ -892,14 +892,14 @@ global $basedir, $main_include_path; if (!$dir) { - $dir = "{$basedir}/gifs"; - } - if (is_string($dir) && $dir{0} != '/') { - $dir = "{$basedir}/{$dir}"; + $dir = '/gifs'; + $img_dir = "{$basedir}/gifs"; + } else if (is_string($dir) && $dir{0} != '/') { + $img_dir = "{$basedir}/{$dir}"; } if ($size = @getimagesize("{$main_include_path}/{$dir}/{$file}")) { $image = sprintf('<img src="%s/%s" style="border: %d;%s%s" %s alt="%s" %s />', - $dir, + $img_dir, $file, $border, ($styles ? ' '.$styles : ''), @@ -910,7 +910,7 @@ ); } else { $image = sprintf('<img src="%s/%s" style="border: %d;%s%s" alt="%s" %s />', - $dir, + $img_dir, $file, $border, ($styles ? ' '.$styles : ''),

« previous php.pear.cvs (#48481) next »