aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/start.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-16 12:32:40 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-16 12:32:40 +0000
commit554e8f7fedab096467b2d08e8a6f67910267c69d (patch)
tree2194a6a71217a717530dae3be9a574ca222567d2 /mod/profile/start.php
parent1e0a90d6488275b50dce0696c7761b0979a8bc69 (diff)
downloadelgg-554e8f7fedab096467b2d08e8a6f67910267c69d.tar.gz
elgg-554e8f7fedab096467b2d08e8a6f67910267c69d.tar.bz2
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
Diffstat (limited to 'mod/profile/start.php')
-rw-r--r--mod/profile/start.php12
1 files changed, 12 insertions, 0 deletions
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');
@@ -104,6 +105,17 @@
}
/**
+ * Icon JS
+ */
+ function profile_iconjs_handler($page) {
+
+ global $CONFIG;
+
+ include($CONFIG->pluginspath . "profile/javascript.php");
+
+ }
+
+ /**
* Profile URL generator for $user->getUrl();
*
* @param ElggUser $user