From 4e20a89b798d9a7123833c223f01ae85643dd373 Mon Sep 17 00:00:00 2001
From: Penny Leach <penny@mjollnir.org>
Date: Thu, 9 Oct 2008 20:07:54 +0100
Subject: [PATCH] [UPSTREAM] hook in user/view to run local code

---
 user/view.php |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/user/view.php b/user/view.php
index 73776e9..1d858b6 100644
--- a/user/view.php
+++ b/user/view.php
@@ -517,6 +517,9 @@
         echo "</div>";
         echo "</form>";
     }

+    if (file_exists($CFG->dirroot . '/local/lib.php')) {
+        require_once($CFG->dirroot . '/local.lib.php');
+        if (function_exists('local_user_view')) {
+            local_user_view($user, $course);
+        }
+    }
     echo "</div>\n";
 
     if ($CFG->debugdisplay && debugging('', DEBUG_DEVELOPER) && $USER->id == $user->id) {  // Show user object
-- 
1.5.6.5

