Get images named like appname/imagename working again

This commit is contained in:
Nathan Gray 2012-04-04 19:16:19 +00:00
parent f6c41506b3
commit 6e103c4c1b

View File

@ -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];
}