Removed obsolete features:
- CMS_RESPONSE.add_variable (..) - CMS_MODULE.register_hooks (..) And related code.
This commit is contained in:
@@ -191,15 +191,6 @@ feature -- Router
|
|||||||
|
|
||||||
feature -- Hooks configuration
|
feature -- Hooks configuration
|
||||||
|
|
||||||
register_hooks (a_response: CMS_RESPONSE)
|
|
||||||
obsolete
|
|
||||||
"!UNSAFE!: it is highly recommended to update this module and use setup_hooks [Dec/2015]."
|
|
||||||
require
|
|
||||||
is_enabled: is_enabled
|
|
||||||
do
|
|
||||||
setup_hooks (a_response.api.hooks)
|
|
||||||
end
|
|
||||||
|
|
||||||
setup_hooks (a_hooks: CMS_HOOK_CORE_MANAGER)
|
setup_hooks (a_hooks: CMS_HOOK_CORE_MANAGER)
|
||||||
-- Module hooks configuration.
|
-- Module hooks configuration.
|
||||||
require
|
require
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ feature {NONE} -- Initialization
|
|||||||
get_theme
|
get_theme
|
||||||
create menu_system.make
|
create menu_system.make
|
||||||
initialize_block_region_settings
|
initialize_block_region_settings
|
||||||
obsolete_register_hooks
|
|
||||||
end
|
end
|
||||||
|
|
||||||
initialize_site_url
|
initialize_site_url
|
||||||
@@ -65,22 +64,6 @@ feature {NONE} -- Initialization
|
|||||||
site_url_ends_with_slash: site_url.ends_with_general ("/")
|
site_url_ends_with_slash: site_url.ends_with_general ("/")
|
||||||
end
|
end
|
||||||
|
|
||||||
obsolete_register_hooks
|
|
||||||
-- Obsolete code to initialize hooks.
|
|
||||||
-- Dangerous, since those hooks would be available only under CMS_RESPONSE context.
|
|
||||||
local
|
|
||||||
l_module: CMS_MODULE
|
|
||||||
l_enabled_modules: CMS_MODULE_COLLECTION
|
|
||||||
do
|
|
||||||
l_enabled_modules := api.enabled_modules
|
|
||||||
across
|
|
||||||
l_enabled_modules as ic
|
|
||||||
loop
|
|
||||||
l_module := ic.item
|
|
||||||
l_module.register_hooks (Current)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
feature -- Access
|
feature -- Access
|
||||||
|
|
||||||
request: WSF_REQUEST
|
request: WSF_REQUEST
|
||||||
@@ -367,12 +350,6 @@ feature -- Element change
|
|||||||
main_content := s
|
main_content := s
|
||||||
end
|
end
|
||||||
|
|
||||||
add_variable (a_element: ANY; a_key:READABLE_STRING_32)
|
|
||||||
obsolete "Use `set_value' [Aug/2015]"
|
|
||||||
do
|
|
||||||
set_value (a_element, a_key)
|
|
||||||
end
|
|
||||||
|
|
||||||
set_value (v: detachable ANY; k: READABLE_STRING_GENERAL)
|
set_value (v: detachable ANY; k: READABLE_STRING_GENERAL)
|
||||||
-- Set value `v' associated with name `k'.
|
-- Set value `v' associated with name `k'.
|
||||||
do
|
do
|
||||||
|
|||||||
Reference in New Issue
Block a user