Added recent_changes module.
Revisited hooks management, and added new CMS_HOOK_MANAGER. Added admin, and other link into navigation menu that goes into first sidebar. Fixed theme info, and template for sidebar ids.
This commit is contained in:
@@ -247,17 +247,26 @@ feature -- Access: Node
|
||||
debug ("refactor_fixme")
|
||||
fixme ("Check preconditions")
|
||||
end
|
||||
Result := full_node (node_storage.node_by_id (a_id))
|
||||
Result := safe_full_node (node_storage.node_by_id (a_id))
|
||||
end
|
||||
|
||||
revision_node (a_node_id: INTEGER_64; a_revision_id: INTEGER_64): detachable CMS_NODE
|
||||
do
|
||||
Result := full_node (node_storage.node_by_id_and_revision (a_node_id, a_revision_id))
|
||||
Result := safe_full_node (node_storage.node_by_id_and_revision (a_node_id, a_revision_id))
|
||||
end
|
||||
|
||||
full_node (a_node: detachable CMS_NODE): detachable CMS_NODE
|
||||
safe_full_node (a_node: detachable CMS_NODE): detachable CMS_NODE
|
||||
do
|
||||
if a_node /= Void then
|
||||
Result := full_node (a_node)
|
||||
end
|
||||
end
|
||||
|
||||
full_node (a_node: CMS_NODE): CMS_NODE
|
||||
-- If `a_node' is partial, return the full node from `a_node',
|
||||
-- otherwise return directly `a_node'.
|
||||
require
|
||||
a_node_set: a_node /= Void
|
||||
do
|
||||
if attached {CMS_PARTIAL_NODE} a_node as l_partial_node then
|
||||
if attached node_type_for (l_partial_node) as ct then
|
||||
|
||||
Reference in New Issue
Block a user