diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-10-29 10:57:32 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-10-29 10:57:32 +0000 |
commit | aca3fd30ca1d44f4af6add46d5c5ac3c051f3b27 (patch) | |
tree | 080258f2ef715c1855e535c87be53823fbee2ad9 | |
parent | 473682966b5848a5c8c915dfac20722d4a51f73d (diff) | |
download | elgg-aca3fd30ca1d44f4af6add46d5c5ac3c051f3b27.tar.gz elgg-aca3fd30ca1d44f4af6add46d5c5ac3c051f3b27.tar.bz2 |
Hide 'about me' on custom profiles
git-svn-id: https://code.elgg.org/elgg/trunk@2341 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | mod/profile/start.php | 4 | ||||
-rw-r--r-- | mod/profile/views/default/profile/userdetails.php | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/mod/profile/start.php b/mod/profile/start.php index 89e70b5ce..375cc5446 100644 --- a/mod/profile/start.php +++ b/mod/profile/start.php @@ -118,8 +118,10 @@ $n++; } - if (count($loaded_defaults)) + if (count($loaded_defaults)) { + $CONFIG->profile_using_custom = true; $profile_defaults = $loaded_defaults; + } $CONFIG->profile = trigger_plugin_hook('profile:fields', 'profile', NULL, $profile_defaults); } diff --git a/mod/profile/views/default/profile/userdetails.php b/mod/profile/views/default/profile/userdetails.php index 50f7f33ac..522152853 100644 --- a/mod/profile/views/default/profile/userdetails.php +++ b/mod/profile/views/default/profile/userdetails.php @@ -127,7 +127,7 @@ </td> </tr> - +<?php if (!isset($CONFIG->profile_using_custom)) {?> <tr> <td colspan="2"> <div id="profile_info_column_right"> @@ -137,7 +137,7 @@ </td> </tr> - +<?php } ?> </table> |