From c3cccfc0c54dbd03b087dd0151cefe12bb10f274 Mon Sep 17 00:00:00 2001
From: Penny Leach <penny@mjollnir.org>
Date: Wed, 17 Sep 2008 18:34:51 +0100
Subject: [PATCH] [UPSTREAM] add support for local event handlers

---
 lib/locallib.php |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/lib/locallib.php b/lib/locallib.php
index 0c38b61..be0d729 100644
--- a/lib/locallib.php
+++ b/lib/locallib.php
@@ -165,6 +165,10 @@ function upgrade_local_db($continueto) {
         error('Could not set up the capabilities for local!');
     }
 
+    if (!events_update_definition('local')) {
+        error('Could not set up the events definitions for local!');
+    }
+
     upgrade_log_finish();
 }
 
-- 
1.5.6.5

