aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-19 16:57:05 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-19 16:57:05 +0000
commit555757c571e186dd8605a4814a5442c40a9e403e (patch)
treee3fd0b40c56d79b8e3610a86ea0dbf60da4db87e /engine
parentece3f544d55a9918e4e2b6c0759a7faa1570e9ad (diff)
downloadelgg-555757c571e186dd8605a4814a5442c40a9e403e.tar.gz
elgg-555757c571e186dd8605a4814a5442c40a9e403e.tar.bz2
added a ready,system event so that plugins can do things after the init has finished but before pages are created
git-svn-id: http://code.elgg.org/elgg/trunk@7680 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/admin.php2
-rw-r--r--engine/lib/views.php2
-rw-r--r--engine/start.php3
3 files changed, 6 insertions, 1 deletions
diff --git a/engine/lib/admin.php b/engine/lib/admin.php
index 0a2158d45..106e899f9 100644
--- a/engine/lib/admin.php
+++ b/engine/lib/admin.php
@@ -189,6 +189,8 @@ function admin_settings_page_handler($page) {
elgg_admin_add_plugin_settings_sidemenu();
elgg_set_context('admin');
+ elgg_unregister_css('screen');
+
// default to overview
if (!isset($page[0]) || empty($page[0])) {
$page = array('overview');
diff --git a/engine/lib/views.php b/engine/lib/views.php
index 71922cb6c..f314a93af 100644
--- a/engine/lib/views.php
+++ b/engine/lib/views.php
@@ -1537,7 +1537,7 @@ function elgg_views_boot() {
elgg_register_js("{$base}vendors/jquery/jquery-ui-1.7.2.min.js", 'jquery-ui');
elgg_register_js("{$base}vendors/jquery/jquery.form.js", 'jquery.form');
- elgg_register_event_handler('pagesetup', 'system', 'elgg_views_register_core_head_elements');
+ elgg_register_event_handler('ready', 'system', 'elgg_views_register_core_head_elements');
// discover the built-in view types
// @todo cache this
diff --git a/engine/start.php b/engine/start.php
index 646ddbf72..6fcc788bd 100644
--- a/engine/start.php
+++ b/engine/start.php
@@ -142,3 +142,6 @@ if (!defined('UPGRADING')) {
// needs to be set for links in html head
$CONFIG->lastcache = $lastcached;
}
+
+// System loaded and ready
+elgg_trigger_event('ready', 'system');