mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 15:18:58 +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 ($image != '')
|
||||||
{
|
{
|
||||||
if (strpos($image,'.'))
|
$image = str_replace(array('.gif','.GIF','.png','.PNG'),'',$image);
|
||||||
{
|
|
||||||
$image = substr($image,0,strpos($image,'.'));
|
|
||||||
}
|
|
||||||
if (!($path = $GLOBALS['phpgw']->common->image($app,$image)))
|
if (!($path = $GLOBALS['phpgw']->common->image($app,$image)))
|
||||||
{
|
{
|
||||||
$path = $image; // name may already contain absolut path
|
$path = $image; // name may already contain absolut path
|
||||||
@ -351,10 +349,8 @@
|
|||||||
|
|
||||||
function image( $app,$name,$title='',$options='' )
|
function image( $app,$name,$title='',$options='' )
|
||||||
{
|
{
|
||||||
if (strpos($name,'.'))
|
$name = str_replace(array('.gif','.GIF','.png','.PNG'),'',$name);
|
||||||
{
|
|
||||||
$name = substr($name,0,strpos($name,'.'));
|
|
||||||
}
|
|
||||||
if (!($path = $GLOBALS['phpgw']->common->image($app,$name)))
|
if (!($path = $GLOBALS['phpgw']->common->image($app,$name)))
|
||||||
{
|
{
|
||||||
$path = $name; // name may already contain absolut path
|
$path = $name; // name may already contain absolut path
|
||||||
|
Loading…
Reference in New Issue
Block a user