Some formatting etc.

git-svn-id: https://svn.libreccm.org/ccm/trunk@2766 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2014-07-18 14:44:15 +00:00
parent f7c4dbcd7c
commit 725f60d768
2 changed files with 2 additions and 3 deletions

View File

@ -93,7 +93,7 @@ class RepositoriesSuperTreeModel implements TreeModel, DMConstants {
*/
// Return the Root of this Application's repository
Repository repository = (Repository) Web.getContext().getApplication();
Repository repository = (Repository) Web.getWebContext().getApplication();
Folder root = repository.getRoot();
@ -142,7 +142,7 @@ class RepositoriesSuperTreeModel implements TreeModel, DMConstants {
// Get Root folder.
Repository currentRepository =
(Repository) Web.getContext().getApplication();
(Repository) Web.getWebContext().getApplication();
Folder root = currentRepository.getRoot();

View File

@ -102,7 +102,6 @@ public class SimpleSurveyUtil {
// user);
// TODO: Replacement code not tested yet (both alternatives)!
// Application app = Web.getContext().getApplication();
Application app = (Application)Kernel.getContext().getResource();
PermissionDescriptor admin = new PermissionDescriptor
(PrivilegeDescriptor.ADMIN,