forked from extern/egroupware
Fix small display bug if webserver_url isn't set
This commit is contained in:
parent
1aaeda43be
commit
9d9643a9b5
@ -579,7 +579,11 @@ htmlareaConfig.editorURL = '."'$this->phpgwapi_js_url/htmlarea/';";
|
|||||||
{
|
{
|
||||||
$path = $name; // name may already contain absolut path
|
$path = $name; // name may already contain absolut path
|
||||||
}
|
}
|
||||||
if (!@is_readable(str_replace($GLOBALS['phpgw_info']['server']['webserver_url'],PHPGW_SERVER_ROOT,$path)))
|
if(!$GLOBALS['phpgw_info']['server']['webserver_url'])
|
||||||
|
{
|
||||||
|
$base_path = "./";
|
||||||
|
}
|
||||||
|
if (!@is_readable($base_path . str_replace($GLOBALS['phpgw_info']['server']['webserver_url'],PHPGW_SERVER_ROOT,$path)))
|
||||||
{
|
{
|
||||||
// if the image-name is a percentage, use a progressbar
|
// if the image-name is a percentage, use a progressbar
|
||||||
if (substr($name,-1) == '%' && is_numeric($percent = substr($name,0,-1)))
|
if (substr($name,-1) == '%' && is_numeric($percent = substr($name,0,-1)))
|
||||||
|
Loading…
Reference in New Issue
Block a user