Author: sdumitriu Date: 2008-02-26 18:51:19 +0100 (Tue, 26 Feb 2008) New Revision: 7972
Modified: xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWiki.java Log: XWIKI-2156: The current document database (wiki) name should be set in the data model, and not in the storage module Fixed. Modified: xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWiki.java =================================================================== --- xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWiki.java 2008-02-26 17:51:11 UTC (rev 7971) +++ xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWiki.java 2008-02-26 17:51:19 UTC (rev 7972) @@ -4148,7 +4148,7 @@ docname = getDocumentNameFromPath(fixDecodedURI(request, path), context); } } - return docname; + return (docname.indexOf(":") < 0) ? context.getDatabase() + ":" + docname : docname; } /** _______________________________________________ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications