]> source.dussan.org Git - nextcloud-server.git/commitdiff
add the possibility to add an preupdate.php
authorGeorg Ehrke <dev@georgswebsite.de>
Fri, 26 Oct 2012 11:10:56 +0000 (13:10 +0200)
committerGeorg Ehrke <dev@georgswebsite.de>
Fri, 26 Oct 2012 11:10:56 +0000 (13:10 +0200)
lib/app.php

index 28757735e04daaa81022f406e645efa93fa5bf4b..c9329df91d1754923b047c7589014fb927761a76 100755 (executable)
@@ -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');
                }