If we look at the aalborg_theme plugin, its start.php contains elgg_register_event_handler('pagesetup', 'system', 'aalborg_theme_pagesetup', 1000);
When using Event[pagesetup, system] in another plugin I am getting the following warning:
WARNING: Deprecated in 2.3: Event [pagesetup, system] is deprecated. Use menu or page shell hooks. Called from [#9]
/usr/local/elgg/2.3.0/vendor/elgg/elgg/engine/classes/Elgg/EventsService.php:64
-> [#8]
/usr/local/elgg/2.3.0/vendor/elgg/elgg/engine/lib/elgglib.php:551
how can I correct this?
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- ihayredinov@ihayredinov
ihayredinov - 0 likes
You must log in to post replies.Core plugins are set as exceptions for those warnings, and are being rewritten in 3.0.
In your plugin, use different hooks, or just ignore warnings until 3.0 comes out