Skip to content
Snippets Groups Projects
Commit 7284e57c authored by Tom Needham's avatar Tom Needham
Browse files

Migration: fix app paths

parent 27069882
Branches
No related tags found
No related merge requests found
...@@ -64,7 +64,7 @@ class OC_Migrate{ ...@@ -64,7 +64,7 @@ class OC_Migrate{
$apps = OC_App::getAllApps(); $apps = OC_App::getAllApps();
foreach($apps as $app){ foreach($apps as $app){
$path = self::getAppPath($app) . '/appinfo/migrate.php'; $path = OC_App::getAppPath($app) . '/appinfo/migrate.php';
if( file_exists( $path ) ){ if( file_exists( $path ) ){
include( $path ); include( $path );
} }
...@@ -398,7 +398,7 @@ class OC_Migrate{ ...@@ -398,7 +398,7 @@ class OC_Migrate{
if( OC_App::isEnabled( $provider->getID() ) ){ if( OC_App::isEnabled( $provider->getID() ) ){
$success = true; $success = true;
// Does this app use the database? // 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 // Create some app tables
$tables = self::createAppTables( $provider->getID() ); $tables = self::createAppTables( $provider->getID() );
if( is_array( $tables ) ){ if( is_array( $tables ) ){
...@@ -539,7 +539,7 @@ class OC_Migrate{ ...@@ -539,7 +539,7 @@ class OC_Migrate{
} }
// There is a database.xml file // 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'; $file2 = 'static://db_scheme';
// TODO get the relative path to migration.db from the data dir // TODO get the relative path to migration.db from the data dir
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment