mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
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
|
||||
}
|
||||
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 (substr($name,-1) == '%' && is_numeric($percent = substr($name,0,-1)))
|
||||
|
Loading…
Reference in New Issue
Block a user