From c5baede053b8e6edf104b318eea0b23d740e2fd0 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 3 Jul 2007 06:32:40 +0000 Subject: [PATCH] r1565: New bug notifications would have a template-not-found error because the langcode wasn't being calculated because we're loading the NotificationCenter->users[] array too late --- includes/class_notification.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class_notification.php b/includes/class_notification.php index 43400cd..ed4c3b2 100644 --- a/includes/class_notification.php +++ b/includes/class_notification.php @@ -516,10 +516,10 @@ class NotificationCenter if (!is_array($this->users["$userInfo[userid]"])) { $user = construct_user_display($this->registry->userinfo, false); + $this->users["$userInfo[userid]"] = $userInfo; $product = $this->registry->datastore['product']["$bug[product]"]['title'] . '/' . ($bug['component'] ? $this->registry->datastore['product']["$bug[component]"]['title'] . '/' : '') . $this->registry->datastore['version']["$bug[version]"]['version']; eval('$email = "' . $this->registry->template->fetch(FetchEmailPath('notice_new_bug.part', $this->_localeFromUserId($userInfo['userid']))) . '";'); $this->notices["$userInfo[userid]"][] = $email; - $this->users["$userInfo[userid]"] = $userInfo; unset($this->users["$userInfo[userid]"]['mask'], $this->users["$userInfo[userid]"]['relation']); } $this->users["$userInfo[userid]"]['options']["$userInfo[relation]"] = $userInfo['mask']; -- 2.22.5