diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-04-16 22:10:52 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-04-16 22:10:52 +0000 |
commit | 6729a2d0d2faeb07ca8e79b5162c3be269e01b66 (patch) | |
tree | 119609339fa2914d81f43a98a8f9fd6193db0d34 /mod/blog/start.php | |
parent | 2b2afd98c05139c1a5c25f1752e2bb412e26e335 (diff) | |
download | elgg-6729a2d0d2faeb07ca8e79b5162c3be269e01b66.tar.gz elgg-6729a2d0d2faeb07ca8e79b5162c3be269e01b66.tar.bz2 |
Fixes #3310. Applied lie2815's patch to use activate.php and deactivate.php instead of manifest on_de/activate fields in plugins.
git-svn-id: http://code.elgg.org/elgg/trunk@9002 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/blog/start.php')
-rw-r--r-- | mod/blog/start.php | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/mod/blog/start.php b/mod/blog/start.php index 7d42e80b9..33c6ee20d 100644 --- a/mod/blog/start.php +++ b/mod/blog/start.php @@ -18,7 +18,7 @@ elgg_register_event_handler('init', 'system', 'blog_init'); * Init blog plugin. */ function blog_init() { - + elgg_register_library('elgg:blog', elgg_get_plugins_path() . 'blog/lib/blog.php'); // add a site navigation item @@ -101,14 +101,14 @@ function blog_page_handler($page) { // @todo remove the forwarder in 1.9 // forward to correct URL for bookmarks pre-1.7.5 blog_url_forwarder($page); - + // push all blogs breadcrumb elgg_push_breadcrumb(elgg_echo('blog:blogs'), "blog/all"); if (!isset($page[0])) { $page[0] = 'all'; } - + $page_type = $page[0]; switch ($page_type) { case 'owner': @@ -143,7 +143,7 @@ function blog_page_handler($page) { $params = blog_get_page_content_list(); break; } - + $params['sidebar'] .= elgg_view('blog/sidebar', array('page' => $page_type)); $body = elgg_view_layout('content', $params); @@ -225,13 +225,6 @@ function blog_ecml_views_hook($hook, $entity_type, $return_value, $params) { } /** - * Runs when blog plugin is activated. See manifest file. - */ -function blog_on_activate() { - add_subtype('object', 'blog', 'ElggBlog'); -} - -/** * When upgrading, check if the ElggBlog class has been registered as this * was added in Elgg 1.8 */ |