mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
fixed bug in image and submit-button, that caused names containing '.' to be truncated at the first dot
This commit is contained in:
parent
06ab7f4476
commit
597f99375c
@ -201,10 +201,8 @@
|
||||
|
||||
if ($image != '')
|
||||
{
|
||||
if (strpos($image,'.'))
|
||||
{
|
||||
$image = substr($image,0,strpos($image,'.'));
|
||||
}
|
||||
$image = str_replace(array('.gif','.GIF','.png','.PNG'),'',$image);
|
||||
|
||||
if (!($path = $GLOBALS['phpgw']->common->image($app,$image)))
|
||||
{
|
||||
$path = $image; // name may already contain absolut path
|
||||
@ -351,10 +349,8 @@
|
||||
|
||||
function image( $app,$name,$title='',$options='' )
|
||||
{
|
||||
if (strpos($name,'.'))
|
||||
{
|
||||
$name = substr($name,0,strpos($name,'.'));
|
||||
}
|
||||
$name = str_replace(array('.gif','.GIF','.png','.PNG'),'',$name);
|
||||
|
||||
if (!($path = $GLOBALS['phpgw']->common->image($app,$name)))
|
||||
{
|
||||
$path = $name; // name may already contain absolut path
|
||||
|
Loading…
Reference in New Issue
Block a user