summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-10-26 13:10:56 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-10-26 13:10:56 +0200
commit1888ac0d41823d9d15e28279d3a701412c679460 (patch)
tree3a0baf572a05089e79cabe32fdcc3f9a80e0b141
parentc7d64811d68bea0c6c2b181f7d8cb3ad095cff29 (diff)
downloadnextcloud-server-1888ac0d41823d9d15e28279d3a701412c679460.tar.gz
nextcloud-server-1888ac0d41823d9d15e28279d3a701412c679460.zip
add the possibility to add an preupdate.php
-rwxr-xr-xlib/app.php4
1 files changed, 4 insertions, 0 deletions
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');
}