diff --git a/modules/node/cms_node_api.e b/modules/node/cms_node_api.e index dd88fd3..9ae9d85 100644 --- a/modules/node/cms_node_api.e +++ b/modules/node/cms_node_api.e @@ -213,7 +213,7 @@ feature -- Access: Node end - trash_nodes (a_user: CMS_USER): LIST [CMS_NODE] + trashed_nodes (a_user: CMS_USER): LIST [CMS_NODE] -- List of nodes with status in {CMS_NODE_API}.trashed. -- if the current user is admin, it will retrieve all the trashed nodes do diff --git a/modules/node/handler/trash_handler.e b/modules/node/handler/trash_handler.e index 0811073..5f12770 100644 --- a/modules/node/handler/trash_handler.e +++ b/modules/node/handler/trash_handler.e @@ -51,11 +51,11 @@ feature -- HTTP Methods if attached current_user (req) as l_user then - l_page.add_variable (node_api.trash_nodes (l_user), "nodes") + l_page.add_variable (node_api.trashed_nodes (l_user), "nodes") -- NOTE: for development purposes we have the following hardcode output. create s.make_from_string ("

Nodes:

") - if attached node_api.trash_nodes (l_user) as lst then + if attached node_api.trashed_nodes (l_user) as lst then s.append ("