From 2b228fba3463722ad19ea6ccd150b96772508791 Mon Sep 17 00:00:00 2001
From: Bart Visscher <bartv@thisnet.nl>
Date: Fri, 15 Jun 2012 11:18:38 +0200
Subject: [PATCH] Load app before running update script

---
 lib/app.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/app.php b/lib/app.php
index 0c51e3c553..7fdfc93138 100755
--- a/lib/app.php
+++ b/lib/app.php
@@ -542,6 +542,7 @@ class OC_App{
 			return;
 		}
 		if(file_exists(OC::$APPSROOT.'/apps/'.$appid.'/appinfo/update.php')){
+			self::loadApp($appid);
 			include OC::$APPSROOT.'/apps/'.$appid.'/appinfo/update.php';
 		}
 
-- 
GitLab