From 554e8f7fedab096467b2d08e8a6f67910267c69d Mon Sep 17 00:00:00 2001 From: ben Date: Sat, 16 Aug 2008 12:32:40 +0000 Subject: Individual profile items can now have access restrictions; also made the profile JS more cache friendly git-svn-id: https://code.elgg.org/elgg/trunk@1968 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/start.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'mod/profile/start.php') diff --git a/mod/profile/start.php b/mod/profile/start.php index b26abb93f..9ad88fab6 100644 --- a/mod/profile/start.php +++ b/mod/profile/start.php @@ -44,6 +44,7 @@ // Register a page handler, so we can have nice URLs register_page_handler('profile','profile_page_handler'); register_page_handler('icon','profile_icon_handler'); + register_page_handler('iconjs','profile_iconjs_handler'); // Add Javascript reference to the page header extend_view('metatags','profile/metatags'); @@ -103,6 +104,17 @@ } + /** + * Icon JS + */ + function profile_iconjs_handler($page) { + + global $CONFIG; + + include($CONFIG->pluginspath . "profile/javascript.php"); + + } + /** * Profile URL generator for $user->getUrl(); * -- cgit v1.2.3