diff options
author | Tom Needham <needham.thomas@gmail.com> | 2012-06-27 20:43:33 +0000 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2012-06-27 20:43:33 +0000 |
commit | 7284e57c9157bb377c4dc815658ca9f8a89eb07c (patch) | |
tree | bb943591c17ebe89852360af0c0c542560a690e6 /lib | |
parent | 2706988225f7ef36463c8aceaeb3ec84108abde7 (diff) | |
download | nextcloud-server-7284e57c9157bb377c4dc815658ca9f8a89eb07c.tar.gz nextcloud-server-7284e57c9157bb377c4dc815658ca9f8a89eb07c.zip |
Migration: fix app paths
Diffstat (limited to 'lib')
-rw-r--r-- | lib/migrate.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/migrate.php b/lib/migrate.php index f26b4b25673..731b6a6839c 100644 --- a/lib/migrate.php +++ b/lib/migrate.php @@ -64,7 +64,7 @@ class OC_Migrate{ $apps = OC_App::getAllApps(); foreach($apps as $app){ - $path = self::getAppPath($app) . '/appinfo/migrate.php'; + $path = OC_App::getAppPath($app) . '/appinfo/migrate.php'; if( file_exists( $path ) ){ include( $path ); } @@ -398,7 +398,7 @@ class OC_Migrate{ if( OC_App::isEnabled( $provider->getID() ) ){ $success = true; // Does this app use the database? - if( file_exists( self::getAppPath($provider->getID()).'/appinfo/database.xml' ) ){ + if( file_exists( OC_App::getAppPath($provider->getID()).'/appinfo/database.xml' ) ){ // Create some app tables $tables = self::createAppTables( $provider->getID() ); if( is_array( $tables ) ){ @@ -539,7 +539,7 @@ class OC_Migrate{ } // There is a database.xml file - $content = file_get_contents(self::getAppPath($appid) . '/appinfo/database.xml' ); + $content = file_get_contents(OC_App::getAppPath($appid) . '/appinfo/database.xml' ); $file2 = 'static://db_scheme'; // TODO get the relative path to migration.db from the data dir |