diff options
author | Tom Needham <needham.thomas@gmail.com> | 2012-03-02 21:54:44 +0000 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2012-03-02 21:54:44 +0000 |
commit | 8188a9f51bdf0845dcbc24ffe654118b695febc6 (patch) | |
tree | c5c6469c4a94e10f4a020750d60e80e99e9f8def | |
parent | 9c79de4aa01697e6b2eece450a83ca2019eb9b1c (diff) | |
download | nextcloud-server-8188a9f51bdf0845dcbc24ffe654118b695febc6.tar.gz nextcloud-server-8188a9f51bdf0845dcbc24ffe654118b695febc6.zip |
change <create> value in db export
-rw-r--r-- | apps/admin_export/settings.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/admin_export/settings.php b/apps/admin_export/settings.php index 851388c0b58..5eecd4f3a2f 100644 --- a/apps/admin_export/settings.php +++ b/apps/admin_export/settings.php @@ -59,9 +59,11 @@ if (isset($_POST['admin_export'])) { $dbnamestring = "<database>\n\n <name>" . OC_Config::getValue( "dbname", "owncloud" ); $dbtableprefixstring = "<table>\n\n <name>" . OC_Config::getValue( "dbtableprefix", "_oc" ); + $createstring = "<database>\n\n <name>*dbname*</name>\n <create>true</create>"; $dbexport = str_replace( $dbnamestring, "<database>\n\n <name>*dbname*", $dbexport ); $dbexport = str_replace( $dbtableprefixstring, "<table>\n\n <name>*dbtableprefix*", $dbexport ); + $dbexport = str_replace( $createstring, "<database>\n\n <name>*dbname*</name>\n <create>false</create", $dbexport ); // Write the new db export file file_put_contents( $dbfile, $dbexport ); |