mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Get images named like appname/imagename working again
This commit is contained in:
parent
f6c41506b3
commit
6e103c4c1b
@ -56,9 +56,9 @@ egw.extend('images', egw.MODULE_GLOBAL, function() {
|
||||
|
||||
// If this.getAppName does not work, try to determine the image
|
||||
// by looking at the image path.
|
||||
if(!_app && _name.indexOf('/') > 0)
|
||||
if((!_app || _name.indexOf(_app+'/') == 0) && _name.indexOf('/') > 0)
|
||||
{
|
||||
var split = et2_csvSplit(_value, 2,"/");
|
||||
var split = et2_csvSplit(_name, 2,"/");
|
||||
var _app = split[0];
|
||||
_name = split[1];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user