Correct usage of approot
This commit is contained in:
parent
bf6abdde2d
commit
95b5202893
|
@ -7,5 +7,5 @@ if (version_compare($currentVersion, '0.5.0', '<')) {
|
||||||
$stmt = OCP\DB::prepare('DROP TABLE IF EXISTS *PREFIX*gallery_albums');
|
$stmt = OCP\DB::prepare('DROP TABLE IF EXISTS *PREFIX*gallery_albums');
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
|
|
||||||
\OC_DB::createDbFromStructure(OC::$APPSROOT.'/apps/'.$appid.'/appinfo/database.xml');
|
\OC_DB::createDbFromStructure(OC_App::getAppPath($appid).'/appinfo/database.xml');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue