summaryrefslogtreecommitdiffstats
path: root/lib/db.php
diff options
context:
space:
mode:
authorTom Needham <needham.thomas@gmail.com>2012-03-20 20:19:21 +0000
committerTom Needham <needham.thomas@gmail.com>2012-03-20 20:19:21 +0000
commit514c9ad8e7df1d7882adc33c42eb32a209537273 (patch)
treef39dae7822c3b7ddf678861a41a0ceea93e267f2 /lib/db.php
parent145d6f35660669397eaee08988ffbad1b65daff0 (diff)
downloadnextcloud-server-514c9ad8e7df1d7882adc33c42eb32a209537273.tar.gz
nextcloud-server-514c9ad8e7df1d7882adc33c42eb32a209537273.zip
Added unified import method.
Diffstat (limited to 'lib/db.php')
-rw-r--r--lib/db.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/db.php b/lib/db.php
index 07e58590966..bfcff678699 100644
--- a/lib/db.php
+++ b/lib/db.php
@@ -487,6 +487,7 @@ class OC_DB {
/**
* @breif replaces the owncloud tables with a new set
+ * @param $file string path to the MDB2 xml db export file
*/
public static function replaceDB( $file ){
@@ -503,7 +504,11 @@ class OC_DB {
}
// Create new tables
- self::createDBFromStructure( $file );
+ if( self::createDBFromStructure( $file ) ){
+ return true;
+ } else {
+ return false;
+ }
}