From 1888ac0d41823d9d15e28279d3a701412c679460 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Fri, 26 Oct 2012 13:10:56 +0200 Subject: [PATCH] add the possibility to add an preupdate.php --- lib/app.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/app.php b/lib/app.php index 28757735e04..c9329df91d1 100755 --- a/lib/app.php +++ b/lib/app.php @@ -685,6 +685,10 @@ class OC_App{ * @param string $appid */ public static function updateApp($appid) { + if(file_exists(self::getAppPath($appid).'/appinfo/preupdate.php')) { + self::loadApp($appid); + include self::getAppPath($appid).'/appinfo/preupdate.php'; + } if(file_exists(self::getAppPath($appid).'/appinfo/database.xml')) { OC_DB::updateDbFromStructure(self::getAppPath($appid).'/appinfo/database.xml'); }