String path;
XWikiDocument skinDocument = template.equals("macros.vm") ? null : getSkinDocument(skin);
if (skinDocument != null) {
path = getPathFromDocumentSkin(template, skinDocument);
} else {
<BUG>path = getResourcePath("/skins/" + skin + '/', template);
</BUG>
}
return path;
}

String path;
XWikiDocument skinDocument = template.equals("macros.vm") ? null : getSkinDocument(skin);
if (skinDocument != null) {
path = getPathFromDocumentSkin(template, skinDocument);
} else {
path = getResourcePath("/skins/" + skin + '/', template, true);
}
return path;
}
