Add generic behaviour in showphoto of html.form.class.php
This commit is contained in:
parent
cb182752cc
commit
40827a7ef3
@ -3913,6 +3913,11 @@ class Form
|
|||||||
if ($object->photo) $file=get_exdir($id, 2).'photos/'.$object->photo;
|
if ($object->photo) $file=get_exdir($id, 2).'photos/'.$object->photo;
|
||||||
if (! empty($conf->global->MAIN_OLD_IMAGE_LINKS)) $altfile=$object->id.".jpg"; // For backward compatibility
|
if (! empty($conf->global->MAIN_OLD_IMAGE_LINKS)) $altfile=$object->id.".jpg"; // For backward compatibility
|
||||||
$email=$object->email;
|
$email=$object->email;
|
||||||
|
}else {
|
||||||
|
$dir=$conf->$modulepart->dir_output;
|
||||||
|
if ($object->photo) $file=get_exdir($id, 2).'photos/'.$object->photo;
|
||||||
|
if (! empty($conf->global->MAIN_OLD_IMAGE_LINKS)) $altfile=$object->id.".jpg"; // For backward compatibility
|
||||||
|
$email=$object->email;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($dir)
|
if ($dir)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user