Get images named like appname/imagename working again for images outside current app

This commit is contained in:
Nathan Gray 2012-04-04 19:37:17 +00:00
parent 25097f983b
commit df2ba7ddd6

View File

@ -54,9 +54,8 @@ egw.extend('images', egw.MODULE_GLOBAL, function() {
// current application
_app = this.getAppName();
// If this.getAppName does not work, try to determine the image
// by looking at the image path.
if((!_app || _name.indexOf(_app+'/') == 0) && _name.indexOf('/') > 0)
// Handle images in appname/imagename format
if(_name.indexOf('/') > 0)
{
var split = et2_csvSplit(_name, 2,"/");
var _app = split[0];